Companion

object Companion

Functions

Boolean
Link copied to clipboard
@Contract(pure = true)
fun Boolean(flag: Boolean): NBTByte
Convenience method to get an NBTByte equivalent to the byte value of the flag
Byte
Link copied to clipboard
@Contract(pure = true)
fun Byte(value: Byte): NBTByte
Creates an NBTByte with the value of value
@Contract(pure = true)
fun Byte(value: Int): NBTByte
ByteArray
Link copied to clipboard
@Contract(pure = true)
fun ByteArray(vararg value: Byte): NBTByteArray
@Contract(pure = true)
fun ByteArray(vararg value: Int): NBTByteArray
@Contract(pure = true)
fun ByteArray(array: ImmutableByteArray): NBTByteArray
Compound
Link copied to clipboard
@Contract(pure = true)
fun Compound(tags: Map<String, NBT> = mapOf()): NBTCompound
@Contract(pure = true)
fun Compound(lambda: CompoundBuilder): NBTCompound
Double
Link copied to clipboard
@Contract(pure = true)
fun Double(value: Double): NBTDouble
Creates an NBTDouble with the value of value
Entry
Link copied to clipboard
@Contract(pure = true)
fun Entry(key: String, value: NBT): Map.Entry<String, NBT>
Float
Link copied to clipboard
@Contract(pure = true)
fun Float(value: Float): NBTFloat
Creates an NBTFloat with the value of value
Int
Link copied to clipboard
@Contract(pure = true)
fun Int(value: Int): NBTInt
Creates an NBTInt with the value of value
IntArray
Link copied to clipboard
@Contract(pure = true)
fun IntArray(vararg value: Int): NBTIntArray
@Contract(pure = true)
fun IntArray(array: ImmutableIntArray): NBTIntArray
Kompound
Link copied to clipboard
@Contract(pure = true)
inline fun Kompound(crossinline lambda: MutableNBTCompound.() -> Unit): NBTCompound
List
Link copied to clipboard
@Contract(pure = true)
fun <Tag : NBT> List(subtagType: NBTType<out Tag>, vararg tags: Tag): NBTList<Tag>
@Contract(pure = true)
fun <Tag : NBT> List(subtagType: NBTType<out Tag>, tags: List<out Tag> = listOf()): NBTList<Tag>
@Contract(pure = true)
fun <Tag : NBT> List(subtagType: NBTType<out Tag>, length: Int, generator: NBTListGenerator<Tag>): NBTList<Tag>
Long
Link copied to clipboard
@Contract(pure = true)
fun Long(value: Long): NBTLong
Creates an NBTLong with the value of value
LongArray
Link copied to clipboard
@Contract(pure = true)
fun LongArray(vararg value: Long): NBTLongArray
@Contract(pure = true)
fun LongArray(array: ImmutableLongArray): NBTLongArray
Short
Link copied to clipboard
@Contract(pure = true)
fun Short(value: Int): NBTShort
@Contract(pure = true)
fun Short(value: Short): NBTShort
Creates an NBTShort with the value of value
String
Link copied to clipboard
@Contract(pure = true)
fun String(value: String): NBTString
Creates an NBTString with the value of value

Properties

EMPTY
Link copied to clipboard
val EMPTY: NBTCompound
Static constant of an empty NBTCompound.
FALSE
Link copied to clipboard
val FALSE: NBTByte
Static constant of a NBTByte set to 0 Equivalent to NBT.Byte(0)
TRUE
Link copied to clipboard
val TRUE: NBTByte
Static constant of a NBTByte set to 1 Equivalent to NBT.Byte(1)