Changes

14 bytes added ,  04:14, 27 July 2021
Copy DynamicOps to MC1.16 archive
Line 1: Line 1: −
The <code>DynamicOps</code> class is part of mojang's DataFixerUpper serialization library; DynamicOps are used alongside [[codecs/1.16]] to convert java objects to a serialized format and back. While Codecs describe how a java object is to be serialized, DynamicOps describe the format the object is to be serialized to.
+
The <code>DynamicOps</code> class is part of mojang's DataFixerUpper serialization library; DynamicOps are used alongside [[codecs/1.16|codecs]] to convert java objects to a serialized format and back. While Codecs describe how a java object is to be serialized, DynamicOps describe the format the object is to be serialized to.
   −
The DataFixerUpper library includes several DynamicOps for serializing to json; vanilla minecraft also includes a DynamicOps for serializing to minecraft's [[Using_NBT|NBT/1.16]] format.
+
The DataFixerUpper library includes several DynamicOps for serializing to json; vanilla minecraft also includes a DynamicOps for serializing to minecraft's [[Using NBT/1.16|NBT]] format.
    
= Builtin DynamicOps =
 
= Builtin DynamicOps =
Line 21: Line 21:  
== Serializing and Deserializing ==
 
== Serializing and Deserializing ==
   −
By combining a <code>Codec<SomeJavaType></code> with a <code>DynamicOps<SomeSerializedFormat></code>, the proper java object can be converted to the serialized form and back. See [[codecs/1.16]] for details on this subject.
+
By combining a <code>Codec<SomeJavaType></code> with a <code>DynamicOps<SomeSerializedFormat></code>, the proper java object can be converted to the serialized form and back. See [[codecs/1.16|codecs]] for details on this subject.
    
== Format Conversion ==
 
== Format Conversion ==
372

edits