Cancellablepublic 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.Resultblock| 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. | 
getBlockcallEvent, getEventName, isAsynchronouspublic BlockIgniteEvent(@NotNull
                        Block theBlock,
                        @NotNull
                        BlockIgniteEvent.IgniteCause cause,
                        @NotNull
                        Entity ignitingEntity)
public BlockIgniteEvent(@NotNull
                        Block theBlock,
                        @NotNull
                        BlockIgniteEvent.IgniteCause cause,
                        @NotNull
                        Block ignitingBlock)
public BlockIgniteEvent(@NotNull
                        Block theBlock,
                        @NotNull
                        BlockIgniteEvent.IgniteCause cause,
                        @Nullable
                        Entity ignitingEntity,
                        @Nullable
                        Block ignitingBlock)
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this event@NotNull public BlockIgniteEvent.IgniteCause getCause()
@Nullable public Player getPlayer()
@Nullable public Entity getIgnitingEntity()
@Nullable public Block getIgnitingBlock()
@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.