public class BlockIgniteEvent extends BlockEvent implements Cancellable
BlockPlaceEvent
.
If a Block Ignite event is cancelled, the block will not be ignited.
修飾子とタイプ | クラスと説明 |
---|---|
static class |
BlockIgniteEvent.IgniteCause
An enum to specify the cause of the ignite
|
Event.Result
block
コンストラクタと説明 |
---|
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)
非推奨です。
|
修飾子とタイプ | メソッドと説明 |
---|---|
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.
|
getBlock
getEventName, isAsynchronous
@Deprecated public BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Player thePlayer)
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
インタフェース内 Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
インタフェース内 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
クラス内 Event
public static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.