public class StructureGrowEvent extends WorldEvent implements Cancellable
Event.Result
コンストラクタと説明 |
---|
StructureGrowEvent(Location location,
TreeType species,
boolean bonemeal,
Player player,
List<BlockState> blocks) |
修飾子とタイプ | メソッドと説明 |
---|---|
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.
|
getWorld
getEventName, isAsynchronous
public StructureGrowEvent(Location location, TreeType species, boolean bonemeal, Player player, List<BlockState> blocks)
public Location getLocation()
public TreeType getSpecies()
public boolean isFromBonemeal()
public Player getPlayer()
public List<BlockState> getBlocks()
public boolean isCancelled()
Cancellable
isCancelled
インタフェース内 Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
インタフェース内 Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
クラス内 Event
public static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.