public class LeavesDecayEvent extends Object implements BlockEvent, Cancellable
| Constructor and Description |
|---|
LeavesDecayEvent(Block block) |
| Modifier and Type | Method and Description |
|---|---|
Block |
getBlock() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
public LeavesDecayEvent(Block block)
public Block getBlock()
getBlock in interface BlockEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2019 NukkitX. All rights reserved.