Cancellablepublic class BlockSpreadEvent extends BlockFormEvent
 Use BlockFormEvent to catch blocks that "randomly" form instead of
 actually spread.
 
Examples:
If a Block Spread event is cancelled, the block will not spread.
BlockFormEventEvent.Resultblock| Constructor | Description | 
|---|---|
| BlockSpreadEvent(Block block,
                Block source,
                BlockState newState) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static HandlerList | getHandlerList() | |
| HandlerList | getHandlers() | |
| Block | getSource() | Gets the source block involved in this event. | 
getBlockgetNewState, isCancelled, setCancelledgetEventName, isAsynchronouspublic BlockSpreadEvent(Block block, Block source, BlockState newState)
public Block getSource()
public HandlerList getHandlers()
getHandlers in class BlockFormEventpublic static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.