Cancellable
public class StructureGrowEvent extends WorldEvent implements Cancellable
Event.Result
Constructor | Description |
---|---|
StructureGrowEvent(Location location,
TreeType species,
boolean bonemeal,
Player player,
List<BlockState> blocks) |
Modifier and Type | Method | Description |
---|---|---|
List<BlockState> |
getBlocks() |
Gets a list 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, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWorld
public StructureGrowEvent(@NotNull Location location, @NotNull TreeType species, boolean bonemeal, @Nullable Player player, @NotNull List<BlockState> blocks)
@NotNull public Location getLocation()
@NotNull public TreeType getSpecies()
public boolean isFromBonemeal()
@Nullable public Player getPlayer()
@NotNull public List<BlockState> getBlocks()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this event@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.