public class BookViewDataBuilder extends AbstractDataBuilder<BookView> implements ninja.leaping.configurate.objectmapping.serialize.TypeSerializer<BookView>
Constructor and Description |
---|
BookViewDataBuilder()
Constructs a new
BookViewDataBuilder to build
BookView s. |
Modifier and Type | Method and Description |
---|---|
protected Optional<BookView> |
buildContent(DataView container)
Builds the currently
AbstractDataBuilder.supportedVersion variant of the intended
DataSerializable , such that all content upgrades have already
been handled by AbstractDataBuilder.build(DataView) . |
BookView |
deserialize(TypeToken<?> type,
ninja.leaping.configurate.ConfigurationNode value) |
void |
serialize(TypeToken<?> type,
BookView bookView,
ninja.leaping.configurate.ConfigurationNode value) |
build
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
from, reset
public BookViewDataBuilder()
BookViewDataBuilder
to build
BookView
s.protected Optional<BookView> buildContent(DataView container) throws InvalidDataException
AbstractDataBuilder
AbstractDataBuilder.supportedVersion
variant of the intended
DataSerializable
, such that all content upgrades have already
been handled by AbstractDataBuilder.build(DataView)
. This otherwise follows the
same contract as DataBuilder.build(DataView)
.buildContent
in class AbstractDataBuilder<BookView>
container
- The container with data to build fromInvalidDataException
- If there's issues of invalid data formats
or invalid datapublic BookView deserialize(TypeToken<?> type, ninja.leaping.configurate.ConfigurationNode value) throws ninja.leaping.configurate.objectmapping.ObjectMappingException
deserialize
in interface ninja.leaping.configurate.objectmapping.serialize.TypeSerializer<BookView>
ninja.leaping.configurate.objectmapping.ObjectMappingException
public void serialize(TypeToken<?> type, BookView bookView, ninja.leaping.configurate.ConfigurationNode value) throws ninja.leaping.configurate.objectmapping.ObjectMappingException
serialize
in interface ninja.leaping.configurate.objectmapping.serialize.TypeSerializer<BookView>
ninja.leaping.configurate.objectmapping.ObjectMappingException