| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.event.Event
org.bukkit.event.world.WorldEvent
org.bukkit.event.world.StructureGrowEvent
public class StructureGrowEvent
Event that is called when an organic structure attempts to grow (Sapling -> Tree), (Mushroom -> Huge Mushroom), naturally or using bonemeal.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class org.bukkit.event.Event | 
|---|
Event.Result | 
| Constructor Summary | |
|---|---|
StructureGrowEvent(Location location,
                                     TreeType species,
                                     boolean bonemeal,
                                     Player player,
                                     List<BlockState> blocks)
 | 
|
| Method Summary | |
|---|---|
 List<BlockState> | 
getBlocks()
Gets an ArrayList of all blocks associated with the structure.  | 
static HandlerList | 
getHandlerList()
 | 
 HandlerList | 
getHandlers()
 | 
 Location | 
getLocation()
Gets the location of the structure.  | 
 Player | 
getPlayer()
Gets the player that created the structure.  | 
 TreeType | 
getSpecies()
Gets the species type (birch, normal, pine, red mushroom, brown mushroom)  | 
 boolean | 
isCancelled()
Gets the cancellation state of this event.  | 
 boolean | 
isFromBonemeal()
Checks if structure was grown using bonemeal.  | 
 void | 
setCancelled(boolean cancel)
Sets the cancellation state of this event.  | 
| Methods inherited from class org.bukkit.event.world.WorldEvent | 
|---|
getWorld | 
| 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 | 
| Constructor Detail | 
|---|
public StructureGrowEvent(Location location,
                          TreeType species,
                          boolean bonemeal,
                          Player player,
                          List<BlockState> blocks)
| Method Detail | 
|---|
public Location getLocation()
public TreeType getSpecies()
public boolean isFromBonemeal()
public Player getPlayer()
public List<BlockState> getBlocks()
public boolean isCancelled()
Cancellable
isCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
Cancellable
setCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||