NBTCompoundGetters

interface NBTCompoundGetters

Functions

get
Link copied to clipboard
abstract operator fun get(key: String): NBT?
Returns the value associated to the given key, if any.
getAsByte
Link copied to clipboard
open fun getAsByte(key: String): Byte?
Calls getNumber and cast to the desired type.
getAsDouble
Link copied to clipboard
open fun getAsDouble(key: String): Double?
Calls getNumber and cast to the desired type.
getAsFloat
Link copied to clipboard
open fun getAsFloat(key: String): Float?
Calls getNumber and cast to the desired type.
getAsInt
Link copied to clipboard
open fun getAsInt(key: String): Int?
Calls getNumber and cast to the desired type.
getAsLong
Link copied to clipboard
open fun getAsLong(key: String): Long?
Calls getNumber and cast to the desired type.
getAsShort
Link copied to clipboard
open fun getAsShort(key: String): Short?
Calls getNumber and cast to the desired type.
getBoolean
Link copied to clipboard
open fun getBoolean(key: String): Boolean?
Returns the value associated to the given key, if any.
getByte
Link copied to clipboard
open fun getByte(key: String): Byte?
Returns the value associated to the given key, if any.
getByteArray
Link copied to clipboard
open fun getByteArray(key: String): ImmutableByteArray?
Returns the value associated to the given key, if any.
getCompound
Link copied to clipboard
open fun getCompound(key: String): NBTCompound?
Returns the value associated to the given key, if any.
getDouble
Link copied to clipboard
open fun getDouble(key: String): Double?
Returns the value associated to the given key, if any.
getFloat
Link copied to clipboard
open fun getFloat(key: String): Float?
Returns the value associated to the given key, if any.
getInt
Link copied to clipboard
open fun getInt(key: String): Int?
Returns the value associated to the given key, if any.
getIntArray
Link copied to clipboard
open fun getIntArray(key: String): ImmutableIntArray?
Returns the value associated to the given key, if any.
getList
Link copied to clipboard
open fun <T : NBT> getList(key: String): NBTList<T>?
Returns the value associated to the given key, if any.
getLong
Link copied to clipboard
open fun getLong(key: String): Long?
Returns the value associated to the given key, if any.
getLongArray
Link copied to clipboard
open fun getLongArray(key: String): ImmutableLongArray?
Returns the value associated to the given key, if any.
getNumber
Link copied to clipboard
open fun getNumber(key: String): Number?
Returns the value associated to the given key, if any.
getOrElse
Link copied to clipboard
open fun getOrElse(key: String, defaultValue: NBT): NBT
Returns the value associated to the given key, if any.
getShort
Link copied to clipboard
open fun getShort(key: String): Short?
Returns the value associated to the given key, if any.
getString
Link copied to clipboard
open fun getString(key: String): String?
Returns the value associated to the given key, if any.

Inheritors

NBTCompoundLike
Link copied to clipboard