public final class ItemStackComparators extends Object
Comparator
s for ItemStack
s.Modifier and Type | Field and Description |
---|---|
static Comparator<ItemStack> |
ALL |
static Comparator<ItemStack> |
DEFAULT
The default comparator for
ItemStack s. |
static Comparator<ItemStack> |
IGNORE_SIZE
Compares ItemStacks only ignoring their stack-size.
|
static Comparator<ItemStack> |
ITEM_DATA
Compares ItemStacks based on their
DataManipulator s. |
static Comparator<ItemStack> |
ITEM_DATA_IGNORE_DAMAGE
Compares ItemStacks based on their
DataManipulator s ignoring DurabilityData |
static Comparator<ItemStack> |
PROPERTIES
Compares ItemStacks based on its
Property list. |
static Comparator<ItemStack> |
SIZE
Compares ItemStacks based on
ItemStack size. |
static Comparator<ItemStack> |
TYPE
Compares ItemStacks based on
ItemType . |
static Comparator<ItemStack> |
TYPE_SIZE
|
public static final Comparator<ItemStack> TYPE
ItemType
.
This comparator will not return the same results as
ItemStack.equals(ItemStack) for ItemStacks with extra attached data,
different damage values, or different sizes.public static final Comparator<ItemStack> SIZE
ItemStack
size. This
comparator will not return the same results as
ItemStack.equals(ItemStack) for ItemStacks with extra attached data,
different types, or different damage values.public static final Comparator<ItemStack> TYPE_SIZE
public static final Comparator<ItemStack> DEFAULT
ItemStack
s.public static final Comparator<ItemStack> PROPERTIES
Property
list.public static final Comparator<ItemStack> ITEM_DATA
DataManipulator
s.public static final Comparator<ItemStack> ITEM_DATA_IGNORE_DAMAGE
DataManipulator
s ignoring DurabilityData
public static final Comparator<ItemStack> IGNORE_SIZE
This means for stackable items that they can stack together
public static final Comparator<ItemStack> ALL