Skip to content

MapKeyMapRegistry

Package: com.hypixel.hytale.server.core.plugin.registry

public class MapKeyMapRegistry<V> implements IRegistry

Plugin registry for registering entries into a MapKeyMapCodec. Maps a class, string ID, and codec together. The unregister callback acquires the global asset write lock and only runs during non-shutdown unloads.

ConstructorDescription
MapKeyMapRegistry(List<BooleanConsumer> unregister, MapKeyMapCodec<V> mapCodec)Creates a registry backed by the given codec map and unregister list.
MethodReturn TypeDescription
register(@Nonnull Class<T> tClass, @Nonnull String id, @Nonnull Codec<T> codec)MapKeyMapRegistry<V>Registers a class-ID-codec triple with an unregister callback.
shutdown()voidNo-op shutdown hook.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.