Skip to Content
⚠ Under Construction
ReferenceC++ APIBlockPistonEvent

endstone::BlockPistonEvent

Called when a piston block is triggered.

Bases: endstone::Cancellable< BlockEvent >

Functions:

NameDescription
BlockPistonEvent
getDirectionReturn the direction in which the piston will operate.

BlockPistonEvent

BlockPistonEvent(std::unique_ptr<Block> block, BlockFace direction)

getDirection

BlockFace getDirection() const

Return the direction in which the piston will operate.

Returns:

direction of the piston

Last updated on