public abstract class BlockPistonEvent extends BlockEvent implements Cancellable
Event.Result
block
Constructor and Description |
---|
BlockPistonEvent(@NotNull Block block,
@NotNull BlockFace direction) |
Modifier and Type | Method and Description |
---|---|
@NotNull BlockFace |
getDirection()
Return the direction in which the piston will operate.
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
boolean |
isSticky()
Returns true if the Piston in the event is sticky.
|
void |
setCancelled(boolean cancelled)
Sets the cancellation state of this event.
|
getBlock
callEvent, getEventName, getHandlers, isAsynchronous
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancelled)
Cancellable
setCancelled
in interface Cancellable
cancelled
- true if you wish to cancel this eventpublic boolean isSticky()
Copyright © 2021. All rights reserved.