toCompound

@Contract(pure = true)
abstract fun toCompound(): NBTCompound

Creates a NBTCompound. This will be immutable and copied, regardless if the original object is immutable or mutable.