StructureGrowEvent

public class StructureGrowEvent extends WorldEvent implements Cancellable

Event that is called when an organic structure attempts to grow (Sapling -> Tree), (Mushroom -> Huge Mushroom), naturally or using bonemeal.

Constructors

Link copied to clipboard
public void StructureGrowEvent(Location location, TreeType species, boolean bonemeal, Player player, List<BlockState> blocks)

Properties

Link copied to clipboard
public final List<BlockState> blocks
Link copied to clipboard
public final static HandlerList handlers
Link copied to clipboard
public final Location location
Link copied to clipboard
public final Player player
Link copied to clipboard
public final TreeType species
Link copied to clipboard
public final World world

Functions

Link copied to clipboard
Gets an ArrayList of all blocks associated with the structure.
Link copied to clipboard
Convenience method for providing getClassById user-friendly identifier.
Link copied to clipboard
public static HandlerList getHandlerList()
Link copied to clipboard
Link copied to clipboard
Gets the location of the structure.
Link copied to clipboard
public Player getPlayer()
Gets the player that created the structure.
Link copied to clipboard
Gets the species type (birch, normal, pine, red mushroom, brown mushroom)
Link copied to clipboard
public World getWorld()
Gets the world primarily involved with this event
Link copied to clipboard
public final boolean isAsynchronous()
Any custom event that should not by synchronized with other events must use the specific constructor.
Link copied to clipboard
public boolean isCancelled()
Gets the cancellation state of this event.
Link copied to clipboard
public boolean isFromBonemeal()
Checks if structure was grown using bonemeal.
Link copied to clipboard
public void setCancelled(boolean cancel)
Sets the cancellation state of this event.