NbtCompoundEncoder

@ExperimentalSerializationApi
class NbtCompoundEncoder(nbt: Nbt, consumer: (CompoundTag) -> Unit) : NbtTagEncoder(source)

Constructors

Link copied to clipboard
constructor(nbt: Nbt, consumer: (CompoundTag) -> Unit)

Properties

Link copied to clipboard
open override val serializersModule: SerializersModule

Functions

Link copied to clipboard
open fun beginCollection(descriptor: SerialDescriptor, collectionSize: Int): CompositeEncoder
Link copied to clipboard
open override fun beginStructure(descriptor: SerialDescriptor): CompositeEncoder
Link copied to clipboard
open override fun consumeStructure(element: Tag)
Link copied to clipboard
open override fun encodeBoolean(value: Boolean)
Link copied to clipboard
override fun encodeBooleanElement(descriptor: SerialDescriptor, index: Int, value: Boolean)
Link copied to clipboard
open override fun encodeByte(value: Byte)
Link copied to clipboard
override fun encodeByteElement(descriptor: SerialDescriptor, index: Int, value: Byte)
Link copied to clipboard
open override fun encodeChar(value: Char)
Link copied to clipboard
override fun encodeCharElement(descriptor: SerialDescriptor, index: Int, value: Char)
Link copied to clipboard
open override fun encodeDouble(value: Double)
Link copied to clipboard
override fun encodeDoubleElement(descriptor: SerialDescriptor, index: Int, value: Double)
Link copied to clipboard
open override fun encodeElement(element: Tag)
open override fun encodeElement(descriptor: SerialDescriptor, index: Int): Boolean
Link copied to clipboard
open override fun encodeEnum(enumDescriptor: SerialDescriptor, index: Int)
Link copied to clipboard
open override fun encodeFloat(value: Float)
Link copied to clipboard
override fun encodeFloatElement(descriptor: SerialDescriptor, index: Int, value: Float)
Link copied to clipboard
open override fun encodeInline(descriptor: SerialDescriptor): Encoder
Link copied to clipboard
override fun encodeInlineElement(descriptor: SerialDescriptor, index: Int): Encoder
Link copied to clipboard
open override fun encodeInt(value: Int)
Link copied to clipboard
override fun encodeIntElement(descriptor: SerialDescriptor, index: Int, value: Int)
Link copied to clipboard
open override fun encodeLong(value: Long)
Link copied to clipboard
override fun encodeLongElement(descriptor: SerialDescriptor, index: Int, value: Long)
Link copied to clipboard
open override fun encodeNotNullMark()
Link copied to clipboard
open override fun encodeNull()
Link copied to clipboard
open override fun <T : Any> encodeNullableSerializableElement(descriptor: SerialDescriptor, index: Int, serializer: SerializationStrategy<T>, value: T?)
Link copied to clipboard
open fun <T : Any> encodeNullableSerializableValue(serializer: SerializationStrategy<T>, value: T?)
Link copied to clipboard
open override fun <T> encodeSerializableElement(descriptor: SerialDescriptor, index: Int, serializer: SerializationStrategy<T>, value: T)
Link copied to clipboard
open override fun <T> encodeSerializableValue(serializer: SerializationStrategy<T>, value: T)
Link copied to clipboard
open override fun encodeShort(value: Short)
Link copied to clipboard
override fun encodeShortElement(descriptor: SerialDescriptor, index: Int, value: Short)
Link copied to clipboard
open override fun encodeString(value: String)
Link copied to clipboard
override fun encodeStringElement(descriptor: SerialDescriptor, index: Int, value: String)
Link copied to clipboard
open fun encodeValue(value: Any)
Link copied to clipboard
open override fun endStructure(descriptor: SerialDescriptor)
Link copied to clipboard
open override fun shouldEncodeElementDefault(descriptor: SerialDescriptor, index: Int): Boolean