Package org.bukkit.event.block
Class BlockIgniteEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockIgniteEvent
- All Implemented Interfaces:
- Cancellable
Called when a block is ignited. If you want to catch when a Player places
 fire, you need to use 
BlockPlaceEvent.
 If a Block Ignite event is cancelled, the block will not be ignited.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumAn enum to specify the cause of the igniteNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructorsConstructorDescriptionBlockIgniteEvent(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) 
- 
Method SummaryModifier and TypeMethodDescriptiongetCause()Gets the cause of block ignite.static HandlerListGets the block which ignited this blockGets the entity who ignited this blockGets the player who ignited this blockbooleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.Methods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
BlockIgniteEventpublic BlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @Nullable Entity ignitingEntity) 
- 
BlockIgniteEventpublic BlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @NotNull Block ignitingBlock) 
- 
BlockIgniteEventpublic BlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @Nullable Entity ignitingEntity, @Nullable Block ignitingBlock) 
 
- 
- 
Method Details- 
isCancelledpublic boolean isCancelled()Description copied from interface:CancellableGets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- true if this event is cancelled
 
- 
setCancelledpublic void setCancelled(boolean cancel) Description copied from interface:CancellableSets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancel- true if you wish to cancel this event
 
- 
getCauseGets the cause of block ignite.- Returns:
- An IgniteCause value detailing the cause of block ignition
 
- 
getPlayerGets the player who ignited this block- Returns:
- The Player that placed/ignited the fire block, or null if not ignited by a Player.
 
- 
getIgnitingEntityGets the entity who ignited this block- Returns:
- The Entity that placed/ignited the fire block, or null if not ignited by a Entity.
 
- 
getIgnitingBlockGets the block which ignited this block- Returns:
- The Block that placed/ignited the fire block, or null if not ignited by a Block.
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-