Class BlockSpreadEvent

All Implemented Interfaces:

public class BlockSpreadEvent extends BlockFormEvent
Called when a block spreads based on world conditions.

Use BlockFormEvent to catch blocks that "randomly" form instead of actually spread.


  • Mushrooms spreading.
  • Fire spreading.

If a Block Spread event is cancelled, the block will not spread.

See Also:
  • Constructor Details

    • BlockSpreadEvent

      public BlockSpreadEvent(@NotNull Block block, @NotNull Block source, @NotNull BlockState newState)
  • Method Details

    • getSource

      @NotNull public Block getSource()
      Gets the source block involved in this event.
      the Block for the source block involved in this event.
    • getHandlers

      @NotNull public HandlerList getHandlers()
      getHandlers in class BlockFormEvent
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()