Class SynchronizedRegistriesHandler.RegistryEntry<T extends MappedEntity & CopyableEntity<T> & DeepComparableEntity>
java.lang.Object
com.github.retrooper.packetevents.util.mappings.SynchronizedRegistriesHandler.RegistryEntry<T>
- Enclosing class:
SynchronizedRegistriesHandler
@Internal
public static final class SynchronizedRegistriesHandler.RegistryEntry<T extends MappedEntity & CopyableEntity<T> & DeepComparableEntity>
extends Object
-
Constructor Summary
ConstructorDescriptionRegistryEntry
(IRegistry<T> baseRegistry, SynchronizedRegistriesHandler.NbtEntryDecoder<T> decoder) -
Method Summary
Modifier and TypeMethodDescriptioncomputeSyncedRegistry
(Object key, Supplier<SimpleRegistry<?>> registry) createFromElements
(List<WrapperConfigServerRegistryData.RegistryElement> elements, ClientVersion version) @Nullable SimpleRegistry
<T> getSyncedRegistry
(Object key)
-
Constructor Details
-
RegistryEntry
public RegistryEntry(IRegistry<T> baseRegistry, SynchronizedRegistriesHandler.NbtEntryDecoder<T> decoder)
-
-
Method Details
-
getSyncedRegistry
-
computeSyncedRegistry
-
createFromElements
public SimpleRegistry<T> createFromElements(List<WrapperConfigServerRegistryData.RegistryElement> elements, ClientVersion version) -
getRegistryKey
-