public class BlockSpreadEvent extends BlockFormEvent
Use BlockFormEvent
to catch blocks that "randomly" form instead of
actually spread.
Examples:
If a Block Spread event is cancelled, the block will not spread.
BlockFormEvent
Event.Result
block
コンストラクタと説明 |
---|
BlockSpreadEvent(Block block,
Block source,
BlockState newState) |
修飾子とタイプ | メソッドと説明 |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Block |
getSource()
Gets the source block involved in this event.
|
getNewState, isCancelled, setCancelled
getBlock
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCancelled, setCancelled
public BlockSpreadEvent(Block block, Block source, BlockState newState)
public Block getSource()
public HandlerList getHandlers()
getHandlers
クラス内 BlockFormEvent
public static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.