BlockState

data class BlockState @JvmOverloads() constructor(name: String, properties: Map<String, String>)

Represents a block state in a section NBT

Constructors

BlockState
Link copied to clipboard
fun BlockState(nbt: NBTCompound)
Constructs a BlockState from the given TAG_Compound
BlockState
Link copied to clipboard
fun BlockState(name: String, properties: Map<String, String> = HashMap())

Types

Companion
Link copied to clipboard
object Companion

Functions

toNBT
Link copied to clipboard
fun toNBT(): NBTCompound
Converts this BlockState to a TAG_Compound

Properties

name
Link copied to clipboard
val name: String
properties
Link copied to clipboard
val properties: Map<String, String>