public 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.
BlockSpreadEvent
Event.Result
block
Constructor and Description |
---|
BlockFormEvent(Block block,
BlockState newState) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
getNewState, isCancelled, setCancelled
getBlock
callEvent, getEventName, isAsynchronous
public BlockFormEvent(Block block, BlockState newState)
public HandlerList getHandlers()
getHandlers
in class BlockGrowEvent
public static HandlerList getHandlerList()
Copyright © 2021. All rights reserved.