endstone::BlockPistonEvent
Called when a piston block is triggered.
Bases: endstone::Cancellable< BlockEvent >
Functions:
| Name | Description |
|---|---|
BlockPistonEvent | |
getDirection | Return the direction in which the piston will operate. |
BlockPistonEvent
BlockPistonEvent(std::unique_ptr<Block> block, BlockFace direction) getDirection
BlockFace getDirection() constReturn the direction in which the piston will operate.
Returns:
direction of the piston
Last updated on