Cancellable
public 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.
BlockFormEvent
Event.Result
block
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.
|
getBlock
getNewState, isCancelled, setCancelled
getEventName, isAsynchronous
public BlockSpreadEvent(@NotNull Block block, @NotNull Block source, @NotNull BlockState newState)
@NotNull public Block getSource()
@NotNull public HandlerList getHandlers()
getHandlers
in class BlockFormEvent
@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.