Interface PistonRetractEvent
- All Superinterfaces:
Cancellable, Event, PistonEvent, RedstoneEvent
Fired when a piston that is no longer powered is about to retract: its head comes back in, and a
sticky piston pulls the block in front of its head along.
PistonEvent.movedBlocks() holds what a sticky piston pulls. It is empty for a normal piston, and
for a sticky one that lets go of its block: one retracting while that block is still being
pushed, as a short pulse makes it do.
Cancelling the event keeps the piston extended, although it is not powered.
- Since:
- 0.1.0
-
Method Summary
Methods inherited from interface Cancellable
isCancelled, setCancelledMethods inherited from interface PistonEvent
brokenBlocks, direction, movedBlocks, movement, stickyMethods inherited from interface RedstoneEvent
block, position, world