public class BlockFadeEvent extends BlockEvent implements Cancellable
Examples:
このイベントがキャンセルされた場合溶ける事も火が燃え尽きる事もありません。
Event.Result
block
Constructor and Description |
---|
BlockFadeEvent(Block block,
BlockState newState) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
BlockState |
getNewState()
消えるブロックの BlockState を取得します。
|
boolean |
isCancelled()
他のリスナーがイベントをキャンセルしているか判定します。
|
void |
setCancelled(boolean cancel)
イベントをキャンセルをするか設定します。
|
getBlock
getEventName, isAsynchronous
public BlockFadeEvent(Block block, BlockState newState)
public BlockState getNewState()
public boolean isCancelled()
Cancellable
インターフェースからのコピーisCancelled
のインターフェース Cancellable
public void setCancelled(boolean cancel)
Cancellable
インターフェースからのコピーsetCancelled
のインターフェース Cancellable
cancel
- true でイベントをキャンセルします。public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2015. All rights reserved.