Class IntIdentityHashBiMap<K>

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

public class IntIdentityHashBiMap<K> extends Object implements IObjectIntIterable<K>
  • Field Details

    • EMPTY_SLOT

      private static final Object EMPTY_SLOT
    • keys

      private K[] keys
    • values

      private int[] values
    • byId

      private K[] byId
    • nextId

      private int nextId
    • size

      private int size
  • Constructor Details

    • IntIdentityHashBiMap

      public IntIdentityHashBiMap(int p_i46830_1_)
  • Method Details

    • getId

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

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

      private int getValue(int p_186805_1_)
    • add

      public int add(K p_186808_1_)
    • nextId

      private int nextId()
    • grow

      private void grow(int p_186807_1_)
    • addMapping

      public void addMapping(K p_186814_1_, int p_186814_2_)
    • hash

      private int hash(@Nullable K p_186811_1_)
    • indexOf

      private int indexOf(@Nullable K p_186816_1_, int p_186816_2_)
    • findEmpty

      private int findEmpty(int p_186806_1_)
    • iterator

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

      public void clear()
    • size

      public int size()