org.bukkit.event.block
Class BlockFormEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockGrowEvent
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:
- Snow forming due to a snow storm.
- Ice forming in a snowy Biome like Taiga or Tundra.
If a Block Form event is cancelled, the block will not be formed.
- See Also:
BlockSpreadEvent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockFormEvent
public BlockFormEvent(Block block,
BlockState newState)
getHandlers
public HandlerList getHandlers()
- Overrides:
getHandlers
in class BlockGrowEvent
getHandlerList
public static HandlerList getHandlerList()
Copyright © 2013. All Rights Reserved.