public class FluidLevelChangeEvent extends BlockEvent implements Cancellable
Event.Result
block
Constructor and Description |
---|
FluidLevelChangeEvent(@NotNull Block theBlock,
@NotNull BlockData newData) |
Modifier and Type | Method and 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
callEvent, 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 © 2021. All rights reserved.