Nbt Builder
Builder of the Nbt instance provided by Nbt { ... }
factory function.
Properties
Name of the class descriptor property for polymorphic serialization. "type" by default.
The compression method to use when writing NBT binary. Required.
The compression level, in 0..9
or null
. null
by default.
Specifies whether default values of Kotlin properties should be encoded. false
by default.
Specifies whether encounters of unknown properties in the input NBT should be ignored instead of throwing SerializationException. false
by default.
Specifies whether classes serialized as the root NBT tag should be named with their SerialDescriptor.serialName. true
by default.
Module with contextual and polymorphic serializers to be used in the resulting Nbt instance.
The variant of NBT binary format to use. Required.