Cancellablepublic class FluidLevelChangeEvent extends BlockEvent implements Cancellable
Event.Resultblock| Constructor | Description |
|---|---|
FluidLevelChangeEvent(@NotNull Block theBlock,
@NotNull BlockData newData) |
| Modifier and Type | Method | Description |
|---|---|---|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
@NotNull BlockData |
getNewData() |
Gets the new data of the changed block.
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancelled) |
Sets the cancellation state of this event.
|
void |
setNewData(@NotNull BlockData newData) |
Sets the new data of the changed block.
|
getBlockgetEventName, isAsynchronous@NotNull public @NotNull BlockData getNewData()
public void setNewData(@NotNull
@NotNull BlockData newData)
newData - the new datapublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - 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.