Package alexiil.mc.lib.attributes.item
Enum Class ItemStackCollections
- All Implemented Interfaces:
- Serializable,- Comparable<ItemStackCollections>,- Constable
Utility methods for creating 
Map's and Set's based on ItemStack's.
 
 Every set or map factory method will produce a set or map using STRATEGY_IGNORE_AMOUNT or
 COMPARATOR_IGNORE_AMOUNT, rather than their exact versions.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic Comparator<net.minecraft.item.ItemStack>AComparatorthat comparesItemStack's by their RegistryIdentifier, thenItemStack.getTag(), then amounts.static Comparator<net.minecraft.item.ItemStack>static it.unimi.dsi.fastutil.Hash.Strategy<net.minecraft.item.ItemStack>static it.unimi.dsi.fastutil.Hash.Strategy<net.minecraft.item.ItemStack>
- 
Method SummaryModifier and TypeMethodDescriptionstatic <V> it.unimi.dsi.fastutil.objects.Object2ObjectAVLTreeMap<net.minecraft.item.ItemStack,V>static <V> it.unimi.dsi.fastutil.objects.Object2ObjectOpenCustomHashMap<net.minecraft.item.ItemStack,V>hashMap()static it.unimi.dsi.fastutil.objects.Object2IntAVLTreeMap<net.minecraft.item.ItemStack>static it.unimi.dsi.fastutil.objects.Object2IntOpenCustomHashMap<net.minecraft.item.ItemStack>static it.unimi.dsi.fastutil.objects.Object2IntLinkedOpenCustomHashMap<net.minecraft.item.ItemStack>static it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.item.ItemStack>intMap()Creates aMapthat can mapItemStack's to ints.static it.unimi.dsi.fastutil.objects.Object2IntRBTreeMap<net.minecraft.item.ItemStack>static it.unimi.dsi.fastutil.objects.Object2IntSortedMap<net.minecraft.item.ItemStack>Creates aSortedMapthat can mapItemStack's to ints.static <V> it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenCustomHashMap<net.minecraft.item.ItemStack,V>static <V> Map<net.minecraft.item.ItemStack,V>map()Creates aMapthat can mapItemStack's to objects.static it.unimi.dsi.fastutil.objects.ObjectOpenCustomHashSet<net.minecraft.item.ItemStack>static it.unimi.dsi.fastutil.objects.ObjectLinkedOpenCustomHashSet<net.minecraft.item.ItemStack>static <V> it.unimi.dsi.fastutil.objects.Object2ObjectRBTreeMap<net.minecraft.item.ItemStack,V>static Set<net.minecraft.item.ItemStack>set()Creates a set that can storeItemStack's.static it.unimi.dsi.fastutil.objects.ObjectAVLTreeSet<net.minecraft.item.ItemStack>static <V> SortedMap<net.minecraft.item.ItemStack,V>Creates aSortedMapthat can mapItemStack's to objects.static it.unimi.dsi.fastutil.objects.ObjectRBTreeSet<net.minecraft.item.ItemStack>static it.unimi.dsi.fastutil.objects.ObjectSortedSet<net.minecraft.item.ItemStack>Creates a sorted set that can storeItemStack's.static ItemStackCollectionsReturns the enum constant of this class with the specified name.static ItemStackCollections[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Field Details- 
STRATEGY_EXACTpublic static final it.unimi.dsi.fastutil.Hash.Strategy<net.minecraft.item.ItemStack> STRATEGY_EXACT
- 
STRATEGY_IGNORE_AMOUNTpublic static final it.unimi.dsi.fastutil.Hash.Strategy<net.minecraft.item.ItemStack> STRATEGY_IGNORE_AMOUNT
- 
COMPARATOR_ID_EXACTAComparatorthat comparesItemStack's by their RegistryIdentifier, thenItemStack.getTag(), then amounts.
- 
COMPARATOR_IGNORE_AMOUNT
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
setCreates a set that can storeItemStack's.The current implementation delegates to openHashSet().
- 
sortedSetpublic static it.unimi.dsi.fastutil.objects.ObjectSortedSet<net.minecraft.item.ItemStack> sortedSet()Creates a sorted set that can storeItemStack's.The current implementation delegates to sortedAvlTreeSet().
- 
openHashSetpublic static it.unimi.dsi.fastutil.objects.ObjectOpenCustomHashSet<net.minecraft.item.ItemStack> openHashSet()
- 
openLinkedHashSetpublic static it.unimi.dsi.fastutil.objects.ObjectLinkedOpenCustomHashSet<net.minecraft.item.ItemStack> openLinkedHashSet()
- 
sortedRbTreeSetpublic static it.unimi.dsi.fastutil.objects.ObjectRBTreeSet<net.minecraft.item.ItemStack> sortedRbTreeSet()
- 
sortedAvlTreeSetpublic static it.unimi.dsi.fastutil.objects.ObjectAVLTreeSet<net.minecraft.item.ItemStack> sortedAvlTreeSet()
- 
map
- 
sortedMapCreates aSortedMapthat can mapItemStack's to objects.The current implementation delegates to avlTreeMap().
- 
hashMappublic static <V> it.unimi.dsi.fastutil.objects.Object2ObjectOpenCustomHashMap<net.minecraft.item.ItemStack,V> hashMap()
- 
linkedHashMappublic static <V> it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenCustomHashMap<net.minecraft.item.ItemStack,V> linkedHashMap()
- 
rbTreeMappublic static <V> it.unimi.dsi.fastutil.objects.Object2ObjectRBTreeMap<net.minecraft.item.ItemStack,V> rbTreeMap()
- 
avlTreeMappublic static <V> it.unimi.dsi.fastutil.objects.Object2ObjectAVLTreeMap<net.minecraft.item.ItemStack,V> avlTreeMap()
- 
intMappublic static it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.item.ItemStack> intMap()Creates aMapthat can mapItemStack's to ints.The current implementation delegates to intHashMap().
- 
intSortedMappublic static it.unimi.dsi.fastutil.objects.Object2IntSortedMap<net.minecraft.item.ItemStack> intSortedMap()Creates aSortedMapthat can mapItemStack's to ints.The current implementation delegates to intAvlTreeMap().
- 
intHashMappublic static it.unimi.dsi.fastutil.objects.Object2IntOpenCustomHashMap<net.minecraft.item.ItemStack> intHashMap()
- 
intLinkedHashMappublic static it.unimi.dsi.fastutil.objects.Object2IntLinkedOpenCustomHashMap<net.minecraft.item.ItemStack> intLinkedHashMap()
- 
intRbTreeMappublic static it.unimi.dsi.fastutil.objects.Object2IntRBTreeMap<net.minecraft.item.ItemStack> intRbTreeMap()
- 
intAvlTreeMappublic static it.unimi.dsi.fastutil.objects.Object2IntAVLTreeMap<net.minecraft.item.ItemStack> intAvlTreeMap()
 
-