Class CrudeIncrementalIntIdentityHashBiMap<K>

java.lang.Object
net.minecraft.util.CrudeIncrementalIntIdentityHashBiMap<K>
All Implemented Interfaces:
Iterable<K>, IdMap<K>

public class CrudeIncrementalIntIdentityHashBiMap<K> extends Object implements IdMap<K>
  • Field Details

    • NOT_FOUND

      private static final int NOT_FOUND
      See Also:
    • EMPTY_SLOT

      private static final Object EMPTY_SLOT
    • LOADFACTOR

      private static final float LOADFACTOR
      See Also:
    • keys

      private K[] keys
    • values

      private int[] values
    • byId

      private K[] byId
    • nextId

      private int nextId
    • size

      private int size
  • Constructor Details

    • CrudeIncrementalIntIdentityHashBiMap

      private CrudeIncrementalIntIdentityHashBiMap(int p_13553_)
    • CrudeIncrementalIntIdentityHashBiMap

      private CrudeIncrementalIntIdentityHashBiMap(K[] p_199841_, int[] p_199842_, K[] p_199843_, int p_199844_, int p_199845_)
  • Method Details

    • create

      public static <A> CrudeIncrementalIntIdentityHashBiMap<A> create(int p_184238_)
    • getId

      public int getId(@Nullable K p_13558_)
      Specified by:
      getId in interface IdMap<K>
    • byId

      @Nullable public K byId(int p_13556_)
      Specified by:
      byId in interface IdMap<K>
    • getValue

      private int getValue(int p_13568_)
    • contains

      public boolean contains(K p_144610_)
    • contains

      public boolean contains(int p_144608_)
    • add

      public int add(K p_13570_)
    • nextId

      private int nextId()
    • grow

      private void grow(int p_13572_)
    • addMapping

      public void addMapping(K p_13560_, int p_13561_)
    • hash

      private int hash(@Nullable K p_13574_)
    • indexOf

      private int indexOf(@Nullable K p_13564_, int p_13565_)
    • findEmpty

      private int findEmpty(int p_13576_)
    • iterator

      public Iterator<K> iterator()
      Specified by:
      iterator in interface Iterable<K>
    • clear

      public void clear()
    • size

      public int size()
      Specified by:
      size in interface IdMap<K>
    • copy