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>

    Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.objects.Object2IntMap

    it.unimi.dsi.fastutil.objects.Object2IntMap.Entry<K extends Object>, it.unimi.dsi.fastutil.objects.Object2IntMap.FastEntrySet<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, values

    Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2IntFunction

    defRetValue

    Fields 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
    Constructor
    Description
     
    CountedItemStacks(net.minecraftforge.items.IItemHandler handler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Can the item handler that this collection of stacks came from be coalesced into fewer stacks?
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
     

    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, values

    Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2IntMap

    equals, mergeInt, toString

    Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2IntFunction

    defaultReturnValue, defaultReturnValue

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface it.unimi.dsi.fastutil.Function

    apply

    Methods inherited from interface java.util.function.Function

    compose

    Methods inherited from interface java.util.Map

    compute, computeIfAbsent, computeIfPresent, replaceAll

    Methods 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, composeShort

    Methods 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()