Cancellable
public class FluidLevelChangeEvent extends BlockEvent implements Cancellable
Event.Result
block
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.
|
getBlock
getEventName, isAsynchronous
@NotNull public @NotNull BlockData getNewData()
public void setNewData(@NotNull @NotNull BlockData newData)
newData
- the new datapublic 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.