BlockPistonExtendEvent

Called when getClassById piston extends

Constructors

Link copied to clipboard
public void BlockPistonExtendEvent(Block block, List<Block> blocks, BlockFace direction)

Properties

Link copied to clipboard
public List<Block> blocks
Link copied to clipboard
private boolean cancelled
Link copied to clipboard
public final BlockFace direction
Link copied to clipboard
public final static HandlerList handlers
Link copied to clipboard
public final int length

Functions

Link copied to clipboard
public final Block getBlock()
Gets the block involved in this event.
Link copied to clipboard
public List<Block> getBlocks()
Get an immutable list of the blocks which will be moved by the extending.
Link copied to clipboard
Return the direction in which the piston will operate.
Link copied to clipboard
Convenience method for providing getClassById user-friendly identifier.
Link copied to clipboard
public static HandlerList getHandlerList()
Link copied to clipboard
Link copied to clipboard
public final boolean isAsynchronous()
Any custom event that should not by synchronized with other events must use the specific constructor.
Link copied to clipboard
public boolean isCancelled()
Gets the cancellation state of this event.
Link copied to clipboard
public boolean isSticky()
Returns true if the Piston in the event is sticky.
Link copied to clipboard
public void setCancelled(boolean cancelled)
Sets the cancellation state of this event.