NbtCompoundBuilder

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(): CompoundTag
Link copied to clipboard
fun byteArray(key: String, value: ByteArray)
fun byteArray(key: String, value: Collection<Byte>)
Link copied to clipboard
inline fun compound(key: String, build: NbtCompoundBuilder.() -> Unit)
Link copied to clipboard
fun intArray(key: String, value: IntArray)
fun intArray(key: String, value: Collection<Int>)
Link copied to clipboard
inline fun list(key: String, build: NbtListBuilder.() -> Unit)

inline fun <T> list(key: String, value: Iterable<T>)

Puts an NBT list (not a primitive array) with all elements in value.

Link copied to clipboard
fun longArray(key: String, value: LongArray)
fun longArray(key: String, value: Collection<Long>)
Link copied to clipboard
fun put(key: String, value: Boolean)
fun put(key: String, value: Byte)
fun put(key: String, value: Char)
fun put(key: String, value: Double)
fun put(key: String, value: Float)
fun put(key: String, value: Int)
fun put(key: String, value: Long)
fun put(key: String, value: Short)
fun put(key: String, value: String)
fun put(key: String, value: Tag)