//nbt-manipulator/br.com.gamemods.nbtmanipulator/NbtCompound/copyTo
copyTo
[jvm]
fun copyTo(other: NbtCompound, tagKey: String, default: NbtTag? = null)
Checks if the compound have a given tag, if it has been placed it in the other compound.
The tag will be linked, so any change in the tag will also affect both compounds.
Parameters
jvm
other | The compound that will be modified |
tagKey | The name of the tag that will be mapped |
default | If the compound doesn’t have the tag then this parameter will be used. |