|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.event.Event org.bukkit.event.block.BlockEvent org.bukkit.event.block.BlockIgniteEvent
public class BlockIgniteEvent
Called when a block is ignited. If you want to catch when a Player places fire, you need to use BlockPlaceEvent
.
Nested Class Summary | |
---|---|
static class |
BlockIgniteEvent.IgniteCause
An enum to specify the cause of the ignite |
Nested classes/interfaces inherited from class org.bukkit.event.Event |
---|
Event.Result |
Field Summary |
---|
Fields inherited from class org.bukkit.event.block.BlockEvent |
---|
block |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.bukkit.event.block.BlockEvent |
---|
getBlock |
Methods inherited from class org.bukkit.event.Event |
---|
getEventName, isAsynchronous |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@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)
Method Detail |
---|
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 BlockIgniteEvent.IgniteCause getCause()
public Player getPlayer()
public Entity getIgnitingEntity()
public Block getIgnitingBlock()
public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |