Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.block.BlockSpreadEvent Class Reference
Inheritance diagram for org.bukkit.event.block.BlockSpreadEvent:
org.bukkit.event.block.BlockFormEvent org.bukkit.event.block.BlockGrowEvent org.bukkit.event.Cancellable org.bukkit.event.block.BlockEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 BlockSpreadEvent (final Block block, final Block source, final BlockState newState)
 
Block getSource ()
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.block.BlockFormEvent
 BlockFormEvent (final Block block, final BlockState newState)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.block.BlockGrowEvent
 BlockGrowEvent (final Block block, final BlockState newState)
 
BlockState getNewState ()
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.block.BlockEvent
 BlockEvent (final Block theBlock)
 
final Block getBlock ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 
- Static Public Member Functions inherited from org.bukkit.event.block.BlockFormEvent
static HandlerList getHandlerList ()
 
- Static Public Member Functions inherited from org.bukkit.event.block.BlockGrowEvent
static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.block.BlockEvent
Block block
 

Detailed Description

Called when a block spreads based on world conditions.

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

Examples:

  • Mushrooms spreading.
  • Fire spreading.

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

See also
BlockFormEvent

Definition at line 23 of file BlockSpreadEvent.java.

Member Function Documentation

Block org.bukkit.event.block.BlockSpreadEvent.getSource ( )

Gets the source block involved in this event.

Returns
the Block for the source block involved in this event.

Definition at line 37 of file BlockSpreadEvent.java.

37  {
38  return source;
39  }

The documentation for this class was generated from the following file: