public class BlockFormEvent extends Object implements BlockGrowEvent
| Constructor and Description |
|---|
BlockFormEvent(Block oldBlock,
Block newBlock) |
| Modifier and Type | Method and Description |
|---|---|
Block |
getBlock() |
Block |
getNewState() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
public Block getNewState()
getNewState in interface BlockGrowEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.public Block getBlock()
getBlock in interface BlockEventCopyright © 2017–2018 NukkitX. All rights reserved.