CancellableBlockSpreadEvent, EntityBlockFormEventpublic class BlockFormEvent extends BlockGrowEvent
 Use BlockSpreadEvent to catch blocks that actually spread and don't
 just "randomly" form.
 
Examples:
If a Block Form event is cancelled, the block will not be formed.
BlockSpreadEventEvent.Resultblock| Constructor | Description | 
|---|---|
| BlockFormEvent(Block block,
              BlockState newState) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static HandlerList | getHandlerList() | |
| HandlerList | getHandlers() | 
getBlockgetNewState, isCancelled, setCancelledcallEvent, getEventName, isAsynchronouspublic BlockFormEvent(Block block, BlockState newState)
public HandlerList getHandlers()
getHandlers in class BlockGrowEventpublic static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.