//nbt-manipulator/br.com.gamemods.nbtmanipulator/NbtCompound/set
set
[jvm]
operator fun set(key: String, value: NbtTag)
Directly maps a NbtTag to a key. The value must not be NbtEnd. The given tag will be linked, so modifications to it will also affect the compound value.
[jvm]
operator fun set(key: String, value: Boolean)
Maps a NbtByte1 if the value is true and 0 otherwise.
[jvm]
operator fun set(key: String, value: Byte)
Maps a NbtByte with the given value.
[jvm]
operator fun set(key: String, value: Short)
Maps a NbtShort with the given value.
[jvm]
operator fun set(key: String, value: Int)
Maps a NbtInt with the given value.
[jvm]
operator fun set(key: String, value: Long)
Maps a NbtLong with the given value.
[jvm]
operator fun set(key: String, value: Float)
Maps a NbtFloat with the given value.
[jvm]
operator fun set(key: String, value: Double)
operator fun set(key: String, value: String)
Maps a NbtDouble with the given value.
[jvm]
operator fun set(key: String, value: ByteArray)
operator fun set(key: String, value: IntArray)
operator fun set(key: String, value: LongArray)
Maps a NbtByteArray with the given value. The array instance will be linked so any modification will also change the tag value.