Cancellable
public class FluidLevelChangeEvent extends BlockEvent implements Cancellable
Event.Result
block
Constructor | Description |
---|---|
FluidLevelChangeEvent(Block theBlock,
BlockData newData) |
Modifier and Type | Method | Description |
---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
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(BlockData newData) |
Sets the new data of the changed block.
|
getBlock
getEventName, isAsynchronous
@NotNull public BlockData getNewData()
public void setNewData(@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 HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.