Interface IRegistry<T extends MappedEntity>
- All Superinterfaces:
BiFunction<ClientVersion,
Integer, T>
- All Known Implementing Classes:
SimpleRegistry
,VersionedRegistry
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
apply
(ClientVersion version, Integer id) getById
(ClientVersion version, int id) default T
getByName
(ResourceLocation name) Returns an immutable view of the registry entries.int
getId
(MappedEntity entity, ClientVersion version) default int
getId
(String entityName, ClientVersion version) Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
getByName
-
getByName
-
getById
-
getId
-
getId
-
getEntries
Collection<T> getEntries()Returns an immutable view of the registry entries.- Returns:
- Registry entries
-
getRegistryKey
ResourceLocation getRegistryKey() -
apply
- Specified by:
apply
in interfaceBiFunction<ClientVersion,
Integer, T extends MappedEntity>
-