Class MapKeyMapCodec<V>

java.lang.Object
com.hypixel.hytale.codec.lookup.AMapProvidedMapCodec<Class<? extends V>, V, Codec<V>, MapKeyMapCodec.TypeMap<V>>
com.hypixel.hytale.codec.lookup.MapKeyMapCodec<V>
All Implemented Interfaces:
Codec<MapKeyMapCodec.TypeMap<V>>, RawJsonCodec<MapKeyMapCodec.TypeMap<V>>, SchemaConvertable<MapKeyMapCodec.TypeMap<V>>, ValidatableCodec<MapKeyMapCodec.TypeMap<V>>

public class MapKeyMapCodec<V> extends AMapProvidedMapCodec<Class<? extends V>, V, Codec<V>, MapKeyMapCodec.TypeMap<V>>
A codec that allows for new keys to be registered dynamically to it.

This codec encodes/decodes as a json object using the keys to work out the types of the values.

When registering the id is used as key in the object and the codec will be used to decode the value.