diff --git a/src/main/kotlin/net/axay/kspigot/nbt/NBTData.kt b/src/main/kotlin/net/axay/kspigot/nbt/NBTData.kt index f5a0aa4c..dfc50089 100644 --- a/src/main/kotlin/net/axay/kspigot/nbt/NBTData.kt +++ b/src/main/kotlin/net/axay/kspigot/nbt/NBTData.kt @@ -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 set(key: String, dataType: NBTDataType, value: T) { dataType.writeToCompound(key, value, nbtTagCompound)