org.bukkit.event.block
Class BlockSpreadEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.block.BlockEvent
          extended by org.bukkit.event.block.BlockGrowEvent
              extended by org.bukkit.event.block.BlockFormEvent
                  extended by org.bukkit.event.block.BlockSpreadEvent
All Implemented Interfaces:
Cancellable

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.

Examples:

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

See Also:
BlockFormEvent

Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Field Summary
 
Fields inherited from class org.bukkit.event.block.BlockEvent
block
 
Constructor Summary
BlockSpreadEvent(Block block, Block source, BlockState newState)
           
 
Method Summary
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 Block getSource()
          Gets the source block involved in this event.
 
Methods inherited from class org.bukkit.event.block.BlockGrowEvent
getNewState, isCancelled, setCancelled
 
Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
 
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
 

Constructor Detail

BlockSpreadEvent

public BlockSpreadEvent(Block block,
                        Block source,
                        BlockState newState)
Method Detail

getSource

public Block getSource()
Gets the source block involved in this event.

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

getHandlers

public HandlerList getHandlers()
Overrides:
getHandlers in class BlockFormEvent

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.