Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.event.block.BlockGrowEvent Class Reference

Called when a block grows naturally in the world. More...

+ Inheritance diagram for org.bukkit.event.block.BlockGrowEvent:
+ Collaboration diagram for org.bukkit.event.block.BlockGrowEvent:

Public Member Functions

 BlockGrowEvent (final Block block, final BlockState newState)
 
BlockState getNewState ()
 Gets the state of the block where it will form or spread to.
 
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 ()
 Gets the block involved in this event.
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 The default constructor is defined for cleaner code.
 
 Event (boolean isAsync)
 This constructor is used to explicitly declare an event as synchronous or asynchronous.
 
String getEventName ()
 
final boolean isAsynchronous ()
 Any custom event that should not by synchronized with other events must use the specific constructor.
 
- Public Member Functions inherited from org.bukkit.event.Cancellable
boolean isCancelled ()
 Gets the cancellation state of this event.
 
void setCancelled (boolean cancel)
 Sets the cancellation state of this event.
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

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

Detailed Description

Called when a block grows naturally in the world.

Examples:

  • Wheat
  • Sugar Cane
  • Cactus
  • Watermelon
  • Pumpkin

If a Block Grow event is cancelled, the block will not grow.

Definition at line 22 of file BlockGrowEvent.java.

Constructor & Destructor Documentation

org.bukkit.event.block.BlockGrowEvent.BlockGrowEvent ( final Block  block,
final BlockState  newState 
)

Definition at line 27 of file BlockGrowEvent.java.

Member Function Documentation

static HandlerList org.bukkit.event.block.BlockGrowEvent.getHandlerList ( )
static

Definition at line 53 of file BlockGrowEvent.java.

HandlerList org.bukkit.event.block.BlockGrowEvent.getHandlers ( )
virtual

Implements org.bukkit.event.Event.

Reimplemented in org.bukkit.event.block.BlockSpreadEvent.

Definition at line 49 of file BlockGrowEvent.java.

BlockState org.bukkit.event.block.BlockGrowEvent.getNewState ( )

Gets the state of the block where it will form or spread to.

Returns
The block state for this events block

Definition at line 37 of file BlockGrowEvent.java.

boolean org.bukkit.event.block.BlockGrowEvent.isCancelled ( )

Definition at line 41 of file BlockGrowEvent.java.

void org.bukkit.event.block.BlockGrowEvent.setCancelled ( boolean  cancel)

Definition at line 45 of file BlockGrowEvent.java.


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