Cancellable
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 | Description |
---|---|---|
static class |
BlockIgniteEvent.IgniteCause |
An enum to specify the cause of the ignite
|
Event.Result
block
Constructor | 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) |
Modifier and Type | Method | Description |
---|---|---|
BlockIgniteEvent.IgniteCause |
getCause() |
Gets the cause of block ignite.
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
Block |
getIgnitingBlock() |
Gets the block which 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.
|
getBlock
getEventName, isAsynchronous
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()
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()
Copyright © 2018. All rights reserved.