Interface Codec<T>

Type Parameters:
T - The type to be represented by this codec
All Superinterfaces:
Decoder<T>, Encoder<T>
All Known Subinterfaces:
DataComponent<T>, StructCodec<R>

@Experimental public interface Codec<T> extends Encoder<T>, Decoder<T>

A Codec represents a combined Encoder and Decoder for a value.

Heavily inspired by Mojang/DataFixerUpper, licensed under the MIT license.