Class ObjectIntIdentityMap<T>

java.lang.Object
net.minecraft.util.ObjectIntIdentityMap<T>
All Implemented Interfaces:
Iterable<T>, IObjectIntIterable<T>
Direct Known Subclasses:
GameData.ClearableObjectIntIdentityMap

public class ObjectIntIdentityMap<T> extends Object implements IObjectIntIterable<T>
  • Field Details

  • Constructor Details

    • ObjectIntIdentityMap

      public ObjectIntIdentityMap()
    • ObjectIntIdentityMap

      public ObjectIntIdentityMap(int p_i46984_1_)
  • Method Details

    • addMapping

      public void addMapping(T p_148746_1_, int p_148746_2_)
    • add

      public void add(T p_195867_1_)
    • getId

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

      @Nullable public final T byId(int p_148745_1_)
      Specified by:
      byId in interface IObjectIntIterable<T>
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • size

      public int size()