Interface Codec.Decoder<T>

Type Parameters:
T - The target Java type.
Enclosing interface:
Codec<T>

public static interface Codec.Decoder<T>
Functional interface defining the decoding logic of a codec.
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(DynamicOps<D> ops, D input)
    Decodes the input data.
  • Method Details

    • decode

      <D> DataResult<T> decode(DynamicOps<D> ops, D input)
      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.