public class TextFormatConfigSerializer extends Object implements ninja.leaping.configurate.objectmapping.serialize.TypeSerializer<TextFormat>
TypeSerializer
to allow serialization of
TextFormat
s directly to a configuration file.Constructor and Description |
---|
TextFormatConfigSerializer() |
Modifier and Type | Method and Description |
---|---|
TextFormat |
deserialize(TypeToken<?> type,
ninja.leaping.configurate.ConfigurationNode value) |
void |
serialize(TypeToken<?> type,
TextFormat obj,
ninja.leaping.configurate.ConfigurationNode value) |
public TextFormat deserialize(TypeToken<?> type, ninja.leaping.configurate.ConfigurationNode value) throws ninja.leaping.configurate.objectmapping.ObjectMappingException
deserialize
in interface ninja.leaping.configurate.objectmapping.serialize.TypeSerializer<TextFormat>
ninja.leaping.configurate.objectmapping.ObjectMappingException
public void serialize(TypeToken<?> type, TextFormat obj, ninja.leaping.configurate.ConfigurationNode value) throws ninja.leaping.configurate.objectmapping.ObjectMappingException
serialize
in interface ninja.leaping.configurate.objectmapping.serialize.TypeSerializer<TextFormat>
ninja.leaping.configurate.objectmapping.ObjectMappingException