public abstract class BlockPistonEvent extends BlockEvent implements Cancellable
Event.Resultblock| Constructor and Description | 
|---|
BlockPistonEvent(Block block,
                BlockFace direction)  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
getBlockgetEventName, getHandlers, isAsynchronouspublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true if you wish to cancel this eventpublic boolean isSticky()
public BlockFace getDirection()
Copyright © 2022. All rights reserved.