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.
BlockFormEventEvent.Resultblock| Constructor and Description | 
|---|
BlockSpreadEvent(@NotNull Block block,
                @NotNull Block source,
                @NotNull BlockState newState)  | 
| Modifier and Type | Method and Description | 
|---|---|
static @NotNull HandlerList | 
getHandlerList()  | 
@NotNull HandlerList | 
getHandlers()  | 
@NotNull Block | 
getSource()
Gets the source block involved in this event. 
 | 
getNewState, isCancelled, setCancelledgetBlockgetEventName, isAsynchronouspublic BlockSpreadEvent(@NotNull
                        @NotNull Block block,
                        @NotNull
                        @NotNull Block source,
                        @NotNull
                        @NotNull BlockState newState)
@NotNull public @NotNull Block getSource()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class BlockFormEvent@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.