public class StructureGrowEvent extends WorldEvent implements Cancellable
Event.Result| Constructor and Description | 
|---|
StructureGrowEvent(@NotNull Location location,
                  @NotNull TreeType species,
                  boolean bonemeal,
                  @Nullable Player player,
                  @NotNull List<BlockState> blocks)  | 
| Modifier and Type | Method and 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. 
 | 
getWorldcallEvent, getEventName, isAsynchronous@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 © 2022. All rights reserved.