Package com.mojang.serialization
Interface Decoder.Boxed<A>
- Type Parameters:
A
- the type of object to decode
public static interface Decoder.Boxed<A>
Like a
Decoder
, but deserializes from a Dynamic
, which combines the serialized form and the DynamicOps
for that form.-
Method Summary
Modifier and TypeMethodDescription<T> DataResult<Pair<A,
T>> Decodes an object from a serialized form, returning any remaining serialized data.decoder()
Returns a new decoder with the logic of this object, combining the input format and serialized data.
-
Method Details
-
decode
Decodes an object from a serialized form, returning any remaining serialized data.- Type Parameters:
T
- the type of the serialized form- Parameters:
input
- theDynamic
, containing serialized data, to decode- Returns:
- a
DataResult
containing the decoded object and any remaining serialized data, or an error if the object could not be decoded
-
decoder
Returns a new decoder with the logic of this object, combining the input format and serialized data.- Returns:
- a new decoder with the logic of this object, combining the input format and serialized data
-