BlockIgniteEvent

public class BlockIgniteEvent extends BlockEvent implements Cancellable

Called when getClassById block is ignited. If you want to catch when getClassById Player places fire, you need to use BlockPlaceEvent.

If getClassById Block Ignite event is cancelled, the block will not be ignited.

Constructors

Link copied to clipboard
public void BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Entity ignitingEntity)
public void BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Block ignitingBlock)
public void BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Entity ignitingEntity, Block ignitingBlock)

Types

Link copied to clipboard
public enum IgniteCause
An enum to specify the cause of the ignite

Properties

Link copied to clipboard
Link copied to clipboard
public final static HandlerList handlers
Link copied to clipboard
public final Block ignitingBlock
Link copied to clipboard
public final Entity ignitingEntity

Functions

Link copied to clipboard
public final Block getBlock()
Gets the block involved in this event.
Link copied to clipboard
Gets the cause of block ignite.
Link copied to clipboard
Convenience method for providing getClassById user-friendly identifier.
Link copied to clipboard
public static HandlerList getHandlerList()
Link copied to clipboard
Link copied to clipboard
Gets the block who ignited this block
Link copied to clipboard
Gets the entity who ignited this block
Link copied to clipboard
public Player getPlayer()
Gets the player who ignited this block
Link copied to clipboard
public final boolean isAsynchronous()
Any custom event that should not by synchronized with other events must use the specific constructor.
Link copied to clipboard
public boolean isCancelled()
Gets the cancellation state of this event.
Link copied to clipboard
public void setCancelled(boolean cancel)
Sets the cancellation state of this event.