Class BlockPistonComponentBeta

When present, this block has piston-like behavior. Contains additional properties for discovering block piston state.

Hierarchy

Constructors

Properties

block: Block

Remarks

Block instance that this component pertains to.

isExpanded: boolean

Remarks

Whether the piston is fully expanded.

Throws

This property can throw when used.

isExpanding: boolean

Remarks

Whether the piston is in the process of expanding.

Throws

This property can throw when used.

isMoving: boolean

Remarks

Whether the piston is in the process of expanding or retracting.

Throws

This property can throw when used.

isRetracted: boolean

Remarks

Whether the piston is fully retracted.

Throws

This property can throw when used.

isRetracting: boolean

Remarks

Whether the piston is in the process of retracting.

Throws

This property can throw when used.

typeId: string

Remarks

Identifier of the component.

componentId: "minecraft:piston" = 'minecraft:piston'

Remarks

Identifier of this component.

Methods

  • Returns Vector3[]

    Remarks

    Retrieves a set of blocks that this piston is connected with.

    Throws

    This function can throw errors.