Cancellablepublic class StructureGrowEvent extends WorldEvent implements Cancellable
Event.Result| Constructor | Description |
|---|---|
StructureGrowEvent(Location location,
TreeType species,
boolean bonemeal,
Player player,
java.util.List<BlockState> blocks) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.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.
|
getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWorldpublic StructureGrowEvent(Location location, TreeType species, boolean bonemeal, Player player, java.util.List<BlockState> blocks)
public Location getLocation()
public TreeType getSpecies()
public boolean isFromBonemeal()
public Player getPlayer()
public java.util.List<BlockState> getBlocks()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.