org.bukkit.event.block
Class BlockFormEvent

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
All Implemented Interfaces:
Cancellable
Direct Known Subclasses:
BlockSpreadEvent, EntityBlockFormEvent

public class BlockFormEvent
extends BlockGrowEvent
implements Cancellable

Called when a block is formed or spreads based on world conditions. Use BlockSpreadEvent to catch blocks that actually spread and don't just "randomly" form.

Examples:

If a Block Form event is cancelled, the block will not be formed.

See Also:
BlockSpreadEvent

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
BlockFormEvent(Block block, BlockState newState)
           
 
Method Summary
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 
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

BlockFormEvent

public BlockFormEvent(Block block,
                      BlockState newState)
Method Detail

getHandlers

public HandlerList getHandlers()
Overrides:
getHandlers in class BlockGrowEvent

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.