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 Details

  • Method Details

    • getId

      int getId(T thing)
    • byId

      @Nullable T byId(int id)
    • byIdOrThrow

      default T byIdOrThrow(int id)
    • getIdOrThrow

      default int getIdOrThrow(T value)
    • size

      int size()