Class BlockPistonComponentBeta

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

Hierarchy

Constructors

Properties

isExpanded: boolean

Whether the piston is fully expanded.

Throws

This property can throw when used.

isExpanding: boolean

Whether the piston is in the process of expanding.

Throws

This property can throw when used.

isMoving: boolean

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

Throws

This property can throw when used.

isRetracted: boolean

Whether the piston is fully retracted.

Throws

This property can throw when used.

isRetracting: boolean

Whether the piston is in the process of retracting.

Throws

This property can throw when used.

typeId: string

Identifier of this component.

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

Identifier of this component.

Methods

  • Returns Vector3[]