public class BlockIgniteEvent extends Object implements BlockEvent, Cancellable
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockIgniteEvent.BlockIgniteCause |
| Constructor and Description |
|---|
BlockIgniteEvent(Block block,
Block source,
Entity entity,
BlockIgniteEvent.BlockIgniteCause cause) |
| Modifier and Type | Method and Description |
|---|---|
Block |
getBlock() |
BlockIgniteEvent.BlockIgniteCause |
getCause() |
Entity |
getEntity() |
Block |
getSource() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic BlockIgniteEvent(Block block, Block source, Entity entity, BlockIgniteEvent.BlockIgniteCause cause)
public Block getSource()
public Entity getEntity()
public BlockIgniteEvent.BlockIgniteCause getCause()
public 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–2020 NukkitX. All rights reserved.