Cancellable
@Deprecated public class MoistureChangeEvent extends BlockEvent implements Cancellable
Event.Result
block
Constructor | Description |
---|---|
MoistureChangeEvent(Block block,
BlockState newState) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
static HandlerList |
getHandlerList() |
Deprecated.
|
HandlerList |
getHandlers() |
Deprecated.
|
BlockState |
getNewState() |
Deprecated.
Gets the new state of the affected block.
|
boolean |
isCancelled() |
Deprecated.
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel) |
Deprecated.
Sets the cancellation state of this event.
|
getBlock
getEventName, isAsynchronous
public MoistureChangeEvent(Block block, BlockState newState)
public BlockState getNewState()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.