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
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@Nullable TbyId(int id) default TbyIdOrThrow(int id) intdefault intgetIdOrThrow(T value) intsize()Methods inherited from interface Iterable
forEach, iterator, spliterator
-
Field Details
-
DEFAULT
static final int DEFAULT- See Also:
-
-
Method Details
-
getId
- Returns:
- the integer ID used to identify the given object
-
byId
-
byIdOrThrow
-
getIdOrThrow
-
size
int size()
-