Update NBTData.kt

This commit is contained in:
bluefireoly
2020-07-31 03:10:44 +02:00
parent 622e088591
commit 8f1b8c0215

View File

@@ -19,7 +19,7 @@ class NBTData {
/**
* This method gets the value
* at the given [key]. The returned type
* at the given [key]. The returned [dataType]
* must be specified.
* The returned value is null, if it
* was not possible to find any value at
@@ -36,6 +36,8 @@ class NBTData {
/**
* This method sets some [value]
* at the position of the given [key].
* The [dataType] of the given [value]
* must be specified.
*/
operator fun <T> set(key: String, dataType: NBTDataType<T>, value: T) {
dataType.writeToCompound(key, value, nbtTagCompound)