Package net.minecraft.core
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 TypeMethodDescriptionbyId
(int pId) default T
byIdOrThrow
(int pId) int
default int
getIdOrThrow
(T pValue) int
size()
Methods inherited from interface java.lang.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()
-