Cancellable
public class BlockFertilizeEvent extends BlockEvent implements Cancellable
StructureGrowEvent
.Event.Result
block
Constructor | Description |
---|---|
BlockFertilizeEvent(@NotNull Block theBlock,
@Nullable Player player,
@NotNull List<BlockState> blocks) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull List<BlockState> |
getBlocks() |
Gets a list of all blocks changed by the fertilization.
|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
@Nullable 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.
|
getBlock
callEvent, getEventName, isAsynchronous
public BlockFertilizeEvent(@NotNull @NotNull Block theBlock, @Nullable @Nullable Player player, @NotNull @NotNull List<BlockState> blocks)
@Nullable public @Nullable Player getPlayer()
@NotNull public @NotNull List<BlockState> getBlocks()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancelled)
Cancellable
setCancelled
in interface Cancellable
cancelled
- 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.