From 8f1b8c02155755ff4589ea9b1e66325f959d7228 Mon Sep 17 00:00:00 2001 From: bluefireoly Date: Fri, 31 Jul 2020 03:10:44 +0200 Subject: [PATCH] Update NBTData.kt --- src/main/kotlin/net/axay/kspigot/nbt/NBTData.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)