Interface Codec.Decoder<T>
- Type Parameters:
T- The target Java type.
public static interface Codec.Decoder<T>
Functional interface defining the decoding logic of a codec.
-
Method Summary
Modifier and TypeMethodDescription<D> DataResult<T> decode(DynamicOps<D> ops, D input) Decodes the input data.
-
Method Details
-
decode
Decodes the input data.- Type Parameters:
D- The serialized data type.- Parameters:
ops- The dynamic operations instance.input- The raw serialized input.- Returns:
- The decoded result.
-