Skip to main content

Class: BlockType

The type (or template) of a block. Does not contain permutation data (state) other than the type of block it represents. This type was introduced as of version 1.17.10.21.

Constructors

new BlockType()

private new BlockType(): BlockType

Returns

BlockType

Properties

canBeWaterlogged

Beta

readonly canBeWaterlogged: boolean

Remarks

Represents whether this type of block can be waterlogged.


id

Beta

readonly id: string

Remarks

Block type name - for example, minecraft:acacia_stairs.