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