Cancellablepublic class StructureGrowEvent extends WorldEvent implements Cancellable
Event.Result| Constructor | Description |
|---|---|
StructureGrowEvent(@NotNull Location location,
@NotNull TreeType species,
boolean bonemeal,
@Nullable Player player,
@NotNull List<BlockState> blocks) |
| Modifier and Type | Method | Description |
|---|---|---|
@NotNull List<BlockState> |
getBlocks() |
Gets a list of all blocks associated with the structure.
|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
@NotNull Location |
getLocation() |
Gets the location of the structure.
|
@Nullable Player |
getPlayer() |
Gets the player that created the structure.
|
@NotNull 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(@NotNull
@NotNull Location location,
@NotNull
@NotNull TreeType species,
boolean bonemeal,
@Nullable
@Nullable Player player,
@NotNull
@NotNull List<BlockState> blocks)
@NotNull public @NotNull Location getLocation()
@NotNull public @NotNull TreeType getSpecies()
public boolean isFromBonemeal()
@Nullable public @Nullable Player getPlayer()
@NotNull public @NotNull 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 event@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.