Class ItemResource
java.lang.Object
com.refinedmods.refinedstorage.common.support.resource.ItemResource
- All Implemented Interfaces:
ResourceKey,FuzzyModeNormalizer,PlatformResourceKey
@API(status=INTERNAL)
public final class ItemResource
extends Object
implements PlatformResourceKey, FuzzyModeNormalizer
-
Constructor Summary
ConstructorsConstructorDescriptionItemResource(net.minecraft.world.item.Item item) ItemResource(net.minecraft.world.item.Item item, net.minecraft.core.component.DataComponentPatch components) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.component.DataComponentPatchbooleanlonglonggetTags()inthashCode()net.minecraft.world.item.Itemitem()static ItemResourceofItemStack(net.minecraft.world.item.ItemStack itemStack) net.minecraft.world.item.ItemStacknet.minecraft.world.item.ItemStacktoItemStack(long amount) toString()
-
Constructor Details
-
ItemResource
public ItemResource(net.minecraft.world.item.Item item) -
ItemResource
public ItemResource(net.minecraft.world.item.Item item, net.minecraft.core.component.DataComponentPatch components)
-
-
Method Details
-
toItemStack
public net.minecraft.world.item.ItemStack toItemStack() -
toItemStack
public net.minecraft.world.item.ItemStack toItemStack(long amount) -
normalize
- Specified by:
normalizein interfaceFuzzyModeNormalizer
-
getInterfaceExportLimit
public long getInterfaceExportLimit()- Specified by:
getInterfaceExportLimitin interfacePlatformResourceKey
-
getProcessingPatternLimit
public long getProcessingPatternLimit()- Specified by:
getProcessingPatternLimitin interfacePlatformResourceKey
-
getTags
- Specified by:
getTagsin interfacePlatformResourceKey
-
getResourceType
- Specified by:
getResourceTypein interfacePlatformResourceKey
-
ofItemStack
-
item
public net.minecraft.world.item.Item item() -
components
public net.minecraft.core.component.DataComponentPatch components() -
equals
-
hashCode
public int hashCode() -
toString
-