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.

Hierarchy

  • BlockType

Constructors

Properties

canBeWaterlogged: boolean

Represents whether this type of block can be waterlogged.

id: string

Block type name - for example, minecraft:acacia_stairs.

Methods

  • Returns BlockPermutation

    Returns created permutation.

    Remarks

    Creates the default BlockPermutation for this type which uses the default values for all properties.

    Throws

    This function can throw errors.