NBTData

class NBTData

Constructors

NBTData
Link copied to clipboard
fun NBTData(nbtTagCompound: NBTTagCompound?)
NBTData
Link copied to clipboard
fun NBTData()
NBTData
Link copied to clipboard
fun NBTData(nbtString: String)

Types

Companion
Link copied to clipboard
object Companion

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
get
Link copied to clipboard

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.

operator fun <T> get(key: String, dataType: NBTDataType<T>): T?
hashCode
Link copied to clipboard
open override fun hashCode(): Int
minusAssign
Link copied to clipboard
operator fun minusAssign(key: String)
remove
Link copied to clipboard

This method removes the given key from the NBTTagCompound. Its value will be lost.

fun remove(key: String)
serialize
Link copied to clipboard
fun serialize(): String
set
Link copied to clipboard

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)
toString
Link copied to clipboard
open override fun toString(): String

Properties

nbtTagCompound
Link copied to clipboard
val nbtTagCompound: NBTTagCompound