NbtFormatBuilder

Properties

Link copied to clipboard

Name of the class descriptor property for polymorphic serialization. "type" by default.

Link copied to clipboard
abstract var encodeDefaults: Boolean

Specifies whether default values of Kotlin properties should be encoded. false by default.

Link copied to clipboard

Specifies whether encounters of unknown properties in the input NBT should be ignored instead of throwing SerializationException. false by default.

Link copied to clipboard
abstract var nameRootClasses: Boolean

Specifies whether classes serialized as the root NBT tag should be named with their serial name. true by default.

Link copied to clipboard
abstract var serializersModule: SerializersModule

Module with contextual and polymorphic serializers to be used in the resulting NbtFormat instance.