Package com.mojang.serialization
Interface MapEncoder<A>
- All Superinterfaces:
Keyable
- All Known Implementing Classes:
EitherMapCodec
,FieldEncoder
,KeyDispatchCodec
,MapCodec
,MapEncoder.Implementation
,OptionalFieldCodec
,PairMapCodec
,SimpleMapCodec
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault <B> MapEncoder<B>
default <T> RecordBuilder<T>
compressedBuilder
(DynamicOps<T> ops) <T> KeyCompressor<T>
compressor
(DynamicOps<T> ops) <T> RecordBuilder<T>
encode
(A input, DynamicOps<T> ops, RecordBuilder<T> prefix) encoder()
default <B> MapEncoder<B>
flatComap
(Function<? super B, ? extends DataResult<? extends A>> function) static <T> RecordBuilder<T>
makeCompressedBuilder
(DynamicOps<T> ops, KeyCompressor<T> compressor) default MapEncoder<A>
withLifecycle
(Lifecycle lifecycle)
-
Method Details
-
encode
-
compressedBuilder
-
compressor
-
comap
-
flatComap
-
encoder
-
withLifecycle
-
makeCompressedBuilder
-