public class BlockFromToEvent extends BlockEvent implements Cancellable
If a Block From To event is cancelled, the block will not move (the liquid will not flow).
Event.Result| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | cancel | 
| protected BlockFace | face | 
| protected Block | to | 
block| Constructor and Description | 
|---|
| BlockFromToEvent(Block block,
                Block toBlock) | 
| BlockFromToEvent(Block block,
                BlockFace face) | 
| Modifier and Type | Method and Description | 
|---|---|
| BlockFace | getFace()Gets the BlockFace that the block is moving to. | 
| static HandlerList | getHandlerList() | 
| HandlerList | getHandlers() | 
| Block | getToBlock()Convenience method for getting the faced Block. | 
| boolean | isCancelled()Gets the cancellation state of this event. | 
| void | setCancelled(boolean cancel)Sets the cancellation state of this event. | 
getBlockgetEventName, isAsynchronouspublic BlockFace getFace()
public Block getToBlock()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2017. All rights reserved.