Cancellablepublic class FluidLevelChangeEvent extends BlockEvent implements Cancellable
Event.Resultblock| 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. | 
getBlockgetEventName, isAsynchronous@NotNull public BlockData getNewData()
public void setNewData(@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 HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.