public class BlockIgniteEvent extends BlockEvent implements Cancellable
BlockPlaceEvent.
If a Block Ignite event is cancelled, the block will not be ignited.
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockIgniteEvent.IgniteCause
An enum to specify the cause of the ignite
|
Event.Resultblock| Constructor and Description |
|---|
BlockIgniteEvent(Block theBlock,
BlockIgniteEvent.IgniteCause cause,
Block ignitingBlock) |
BlockIgniteEvent(Block theBlock,
BlockIgniteEvent.IgniteCause cause,
Entity ignitingEntity) |
BlockIgniteEvent(Block theBlock,
BlockIgniteEvent.IgniteCause cause,
Entity ignitingEntity,
Block ignitingBlock) |
BlockIgniteEvent(Block theBlock,
BlockIgniteEvent.IgniteCause cause,
Player thePlayer)
Deprecated.
use
BlockIgniteEvent(Block,
IgniteCause, Entity) instead. |
| Modifier and Type | Method and Description |
|---|---|
BlockIgniteEvent.IgniteCause |
getCause()
Gets the cause of block ignite.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Block |
getIgnitingBlock()
Gets the block who ignited this block
|
Entity |
getIgnitingEntity()
Gets the entity who ignited this block
|
Player |
getPlayer()
Gets the player who ignited this block
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
getBlockgetEventName, isAsynchronous@Deprecated public BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Player thePlayer)
BlockIgniteEvent(Block,
IgniteCause, Entity) instead.public BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Entity ignitingEntity)
public BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Block ignitingBlock)
public BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Entity ignitingEntity, Block ignitingBlock)
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic BlockIgniteEvent.IgniteCause getCause()
public Player getPlayer()
public Entity getIgnitingEntity()
public Block getIgnitingBlock()
public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2014. All rights reserved.