set

operator fun <T> set(key: String, dataType: NBTDataType<T>, value: T)

This method sets some value at the position of the given key. The dataType of the given value must be specified.