Class CountedItemStacks
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2IntFunction<K>
it.unimi.dsi.fastutil.objects.AbstractObject2IntMap<K>
it.unimi.dsi.fastutil.objects.Object2IntOpenCustomHashMap<net.minecraft.world.item.ItemStack>
me.desht.pneumaticcraft.common.util.CountedItemStacks
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<net.minecraft.world.item.ItemStack,,Integer> it.unimi.dsi.fastutil.Hash,it.unimi.dsi.fastutil.objects.Object2IntFunction<net.minecraft.world.item.ItemStack>,it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.world.item.ItemStack>,Serializable,Cloneable,Function<net.minecraft.world.item.ItemStack,,Integer> ToIntFunction<net.minecraft.world.item.ItemStack>,Map<net.minecraft.world.item.ItemStack,Integer>
public class CountedItemStacks
extends it.unimi.dsi.fastutil.objects.Object2IntOpenCustomHashMap<net.minecraft.world.item.ItemStack>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2IntMap
it.unimi.dsi.fastutil.objects.AbstractObject2IntMap.BasicEntry<K extends Object>, it.unimi.dsi.fastutil.objects.AbstractObject2IntMap.BasicEntrySet<K extends Object>Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.Hash
it.unimi.dsi.fastutil.Hash.Strategy<K extends Object> -
Field Summary
Fields inherited from class it.unimi.dsi.fastutil.objects.Object2IntOpenCustomHashMap
containsNullKey, entries, f, key, keys, mask, maxFill, minN, n, size, strategy, value, valuesFields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2IntFunction
defRetValueFields inherited from interface it.unimi.dsi.fastutil.Hash
DEFAULT_GROWTH_FACTOR, DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR, FAST_LOAD_FACTOR, FREE, OCCUPIED, PRIMES, REMOVED, VERY_FAST_LOAD_FACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan the item handler that this collection of stacks came from be coalesced into fewer stacks?net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>coalesce()Methods inherited from class it.unimi.dsi.fastutil.objects.Object2IntOpenCustomHashMap
addTo, clear, clone, computeIfAbsent, computeIfAbsent, computeInt, computeIntIfPresent, containsKey, containsValue, getInt, getOrDefault, hashCode, isEmpty, keySet, merge, object2IntEntrySet, put, putAll, putIfAbsent, rehash, remove, removeInt, replace, replace, shiftKeys, size, strategy, trim, trim, valuesMethods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2IntMap
equals, mergeInt, toStringMethods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2IntFunction
defaultReturnValue, defaultReturnValueMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.Function
applyMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, replaceAllMethods inherited from interface it.unimi.dsi.fastutil.objects.Object2IntFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsInt, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShortMethods inherited from interface it.unimi.dsi.fastutil.objects.Object2IntMap
computeIntIfAbsent, computeIntIfAbsentPartial, containsValue, defaultReturnValue, defaultReturnValue, entrySet, forEach, get, getOrDefault, merge, mergeInt, mergeInt, put, putIfAbsent, remove, remove, replace, replace
-
Constructor Details
-
CountedItemStacks
public CountedItemStacks() -
CountedItemStacks
public CountedItemStacks(net.minecraftforge.items.IItemHandler handler)
-
-
Method Details
-
canCoalesce
public boolean canCoalesce()Can the item handler that this collection of stacks came from be coalesced into fewer stacks?- Returns:
- true if it can be coalesced, false otherwise
-
coalesce
public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> coalesce()
-