Interface IdMap<T>

All Superinterfaces:
Iterable<T>
All Known Subinterfaces:
DefaultedRegistry<T>, Registry<T>, WritableRegistry<T>
All Known Implementing Classes:
BaseMappedRegistry, CrudeIncrementalIntIdentityHashBiMap, DefaultedMappedRegistry, IdMapper, MappedRegistry, NeoForgeRegistryCallbacks.BlockCallbacks.ClearableObjectIntIdentityMap

public interface IdMap<T> extends Iterable<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byId(int p_122651_)
     
    default T
    byIdOrThrow(int p_200958_)
     
    int
    getId(T p_122652_)
     
    default int
    getIdOrThrow(T p_320059_)
     
    int
     

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Field Details

  • Method Details

    • getId

      int getId(T p_122652_)
    • byId

      @Nullable T byId(int p_122651_)
    • byIdOrThrow

      default T byIdOrThrow(int p_200958_)
    • getIdOrThrow

      default int getIdOrThrow(T p_320059_)
    • size

      int size()