- All Implemented Interfaces:
- Direct Known Subclasses:
public abstract class BlockPistonEvent extends BlockEvent implements Cancellable
Called when a piston block is triggered
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Fields inherited from class org.bukkit.event.block.BlockEvent
(Block block, BlockFace direction)
Method SummaryModifier and TypeMethodDescriptionReturn the direction in which the piston will operate.
booleanGets the cancellation state of this event.
isSticky()Returns true if the Piston in the event is sticky.
(boolean cancelled)Sets the cancellation state of this event.
Methods inherited from class org.bukkit.event.block.BlockEvent
Methods inherited from class org.bukkit.event.Event
getEventName, getHandlers, isAsynchronous
isCancelledpublic boolean isCancelled()Description copied from interface:
CancellableGets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins
- Specified by:
- true if this event is cancelled
setCancelledpublic void setCancelled
(boolean cancelled)Description copied from interface:
CancellableSets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
- Specified by:
cancelled- true if you wish to cancel this event
isStickypublic boolean isSticky()Returns true if the Piston in the event is sticky.
- stickiness of the piston
getDirectionReturn the direction in which the piston will operate.
- direction of the piston