类 IdMapper<T>

java.lang.Object
net.minecraft.core.IdMapper<T>
所有已实现的接口:
Iterable<T>, IdMap<T>
直接已知子类:
GameData.ClearableObjectIntIdentityMap

public class IdMapper<T> extends Object implements IdMap<T>
  • 字段详细资料

    • nextId

      protected int nextId
    • tToId

      protected final it.unimi.dsi.fastutil.objects.Object2IntMap<T> tToId
    • idToT

      protected final List<T> idToT
  • 构造器详细资料

    • IdMapper

      public IdMapper()
    • IdMapper

      public IdMapper(int pExpectedSize)
  • 方法详细资料

    • addMapping

      public void addMapping(T pKey, int pValue)
    • add

      public void add(T pKey)
    • getId

      public int getId(T pValue)
      指定者:
      getId 在接口中 IdMap<T>
    • byId

      @Nullable public final T byId(int pId)
      指定者:
      byId 在接口中 IdMap<T>
    • iterator

      public Iterator<T> iterator()
      指定者:
      iterator 在接口中 Iterable<T>
    • contains

      public boolean contains(int pId)
    • size

      public int size()
      指定者:
      size 在接口中 IdMap<T>