Class ConfigObjectSerializer<T>
java.lang.Object
net.darkhax.pricklemc.common.api.config.ConfigObjectSerializer<T>
- Type Parameters:
T- The type of object being serialized.
A serializer that will map an object to config property adapters and make the serializable.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ConfigObjectSerializer
-
-
Method Details
-
write
Writes the config object to a JSON writer.- Parameters:
out- The writer that data should be written to.- Throws:
IOException- This may be raised if a fatal error is encountered while writing the data.
-
read
Reads JSON data and updates the properties on the config object.- Parameters:
in- The input reader.- Throws:
IOException- This may be raised if a fatal error is encountered while reading the data.
-