MapKeyMapRegistry
Package: com.hypixel.hytale.server.core.plugin.registry
public class MapKeyMapRegistry<V> implements IRegistryPlugin 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.
Constructors
Section titled “Constructors”| Constructor | Description |
|---|---|
MapKeyMapRegistry(List<BooleanConsumer> unregister, MapKeyMapCodec<V> mapCodec) | Creates a registry backed by the given codec map and unregister list. |
Methods
Section titled “Methods”| Method | Return Type | Description |
|---|---|---|
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() | void | No-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.