Class VersionedRegistry<T extends MappedEntity>
java.lang.Object
com.github.retrooper.packetevents.util.mappings.VersionedRegistry<T>
- All Implemented Interfaces:
IRegistry<T>,BiFunction<ClientVersion,Integer, T>
-
Constructor Summary
ConstructorsConstructorDescriptionVersionedRegistry(ResourceLocation registryKey, String mappingsPath) VersionedRegistry(String registry, String mappingsPath) -
Method Summary
Modifier and TypeMethodDescription<Z extends T>
Zdefine(String name, Function<TypesBuilderData, Z> builder) getById(ClientVersion version, int id) getByName(ResourceLocation name) Returns an immutable view of the registry entries.intgetId(MappedEntity entity, ClientVersion version) toString()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
VersionedRegistry
-
VersionedRegistry
-
-
Method Details
-
define
-
unloadMappings
@Internal public void unloadMappings() -
getByName
- Specified by:
getByNamein interfaceIRegistry<T extends MappedEntity>
-
getByName
- Specified by:
getByNamein interfaceIRegistry<T extends MappedEntity>
-
getById
- Specified by:
getByIdin interfaceIRegistry<T extends MappedEntity>
-
getId
- Specified by:
getIdin interfaceIRegistry<T extends MappedEntity>
-
getEntries
Returns an immutable view of the registry entries.- Specified by:
getEntriesin interfaceIRegistry<T extends MappedEntity>- Returns:
- Registry entries
-
getRegistryKey
- Specified by:
getRegistryKeyin interfaceIRegistry<T extends MappedEntity>
-
toString
-