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> |
ITEM_DATA |
static Comparator<ItemStack> |
PROPERTIES |
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
public static final Comparator<ItemStack> ITEM_DATA
public static final Comparator<ItemStack> ALL