3.8 KiB
3.8 KiB
title
title |
---|
NBTData - |
//KSpigot/net.axay.kspigot.data/NBTData
NBTData
[jvm] class NBTData
Constructors
Name | Summary |
---|---|
NBTData | [jvm] fun NBTData(nbtTagCompound: NBTTagCompound?) |
NBTData | [jvm] fun NBTData() |
NBTData | [jvm] fun NBTData(nbtString: String) |
Types
Name | Summary |
---|---|
Companion | [jvm] Content object Companion |
Functions
Name | Summary |
---|---|
equals | [jvm] Content open operator override fun equals(other: Any?): Boolean |
get | [jvm] Brief description This method gets the value 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 the specified location, or if the type is not the one which was specified. Content operator fun <T> get(key: String, dataType: NBTDataType<T>): T? |
hashCode | [jvm] Content open override fun hashCode(): Int |
minusAssign | [jvm] Content operator fun minusAssign(key: String) |
remove | [jvm] Brief description This method removes the given key from the NBTTagCompound. Its value will be lost. Content fun remove(key: String) |
serialize | [jvm] Content fun serialize(): String |
set | [jvm] Brief description This method sets some value at the position of the given key. The dataType of the given value must be specified. Content operator fun <T> set(key: String, dataType: NBTDataType<T>, value: T) |
toString | [jvm] Content open override fun toString(): String |
Properties
Name | Summary |
---|---|
nbtTagCompound | [jvm] val nbtTagCompound: NBTTagCompound |