类 IdMapper<T>

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

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

    • nextId

      protected int nextId
    • tToId

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

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

    • IdMapper

      public IdMapper()
    • IdMapper

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

    • addMapping

      public void addMapping(T p_122665_, int p_122666_)
    • add

      public void add(T p_122668_)
    • getId

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

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

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

      public boolean contains(int p_175381_)
    • size

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