public interface BaseMapCodec<K,V>
Modifier and Type | Method and Description |
---|---|
default <T> DataResult<Map<K,V>> |
decode(DynamicOps<T> ops,
MapLike<T> input) |
Codec<V> |
elementCodec() |
default <T> RecordBuilder<T> |
encode(Map<K,V> input,
DynamicOps<T> ops,
RecordBuilder<T> prefix) |
Codec<K> |
keyCodec() |
default <T> DataResult<Map<K,V>> decode(DynamicOps<T> ops, MapLike<T> input)
default <T> RecordBuilder<T> encode(Map<K,V> input, DynamicOps<T> ops, RecordBuilder<T> prefix)