java.lang.Object
org.cyclops.commoncapabilities.api.capability.itemhandler.ItemMatch

public final class ItemMatch extends Object
Item matching flags to be used in ISlotlessItemHandler.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ANY

      public static final int ANY
      Convenience value matching any ItemStack.
      See Also:
    • ITEM

      public static final int ITEM
      Match ItemStack items.
      See Also:
    • TAG

      public static final int TAG
      Match ItemStack NBT tags.
      See Also:
    • STACKSIZE

      public static final int STACKSIZE
      Match ItemStack stacksizes.
      See Also:
    • EXACT

      public static final int EXACT
      Convenience value matching ItemStacks exactly by item, NBT tag and stacksize.
      See Also:
    • TAG_COMPARATOR

      public static Comparator<net.minecraft.nbt.Tag> 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)