Cancellablepublic class BlockFertilizeEvent extends BlockEvent implements Cancellable
StructureGrowEvent.Event.Resultblock| Constructor | Description |
|---|---|
BlockFertilizeEvent(Block theBlock,
Player player,
java.util.List<BlockState> blocks) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<BlockState> |
getBlocks() |
Gets a list of all blocks changed by the fertilization.
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
Player |
getPlayer() |
Gets the player that triggered the fertilization.
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancelled) |
Sets the cancellation state of this event.
|
getBlockgetEventName, isAsynchronouspublic BlockFertilizeEvent(Block theBlock, Player player, java.util.List<BlockState> blocks)
public Player getPlayer()
public java.util.List<BlockState> getBlocks()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.