Class ItemMatch
java.lang.Object
org.cyclops.commoncapabilities.api.capability.itemhandler.ItemMatch
Item matching flags to be used in
ISlotlessItemHandler
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Convenience value matching any ItemStack.static final int
Convenience value matching ItemStacks exactly by item, NBT tag and stacksize.static final int
Match ItemStack items.static final int
Match ItemStack stacksizes.static final int
Match ItemStack NBT tags.static Comparator<net.minecraft.nbt.Tag>
A comparator for NBT tags. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areItemStacksEqual
(net.minecraft.world.item.ItemStack a, net.minecraft.world.item.ItemStack b, int matchFlags) static boolean
areItemStackTagsEqual
(net.minecraft.world.item.ItemStack a, net.minecraft.world.item.ItemStack b)
-
Field Details
-
ANY
public static final int ANYConvenience value matching any ItemStack.- See Also:
-
ITEM
public static final int ITEMMatch ItemStack items.- See Also:
-
TAG
public static final int TAGMatch ItemStack NBT tags.- See Also:
-
STACKSIZE
public static final int STACKSIZEMatch ItemStack stacksizes.- See Also:
-
EXACT
public static final int EXACTConvenience value matching ItemStacks exactly by item, NBT tag and stacksize.- See Also:
-
TAG_COMPARATOR
A comparator for NBT tags. (This is set in GeneralConfig)
-
-
Constructor Details
-
ItemMatch
public ItemMatch()
-
-
Method Details
-
areItemStacksEqual
public static boolean areItemStacksEqual(net.minecraft.world.item.ItemStack a, net.minecraft.world.item.ItemStack b, int matchFlags) -
areItemStackTagsEqual
public static boolean areItemStackTagsEqual(net.minecraft.world.item.ItemStack a, net.minecraft.world.item.ItemStack b)
-