public class BlockPistonExtendEvent extends BlockPistonEvent
Event.Result
block
构造器和说明 |
---|
BlockPistonExtendEvent(Block block,
int length,
BlockFace direction)
已过时。
|
BlockPistonExtendEvent(Block block,
java.util.List<Block> blocks,
BlockFace direction) |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<Block> |
getBlocks()
获取被活塞移动的不可改变的方块列表.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
int |
getLength()
已过时。
由于史莱姆方块的特性,
这个方法是不准确的因为它不包含史莱姆方块粘走的方块,
如MC版本低于1.8请无视此句.
|
getDirection, isCancelled, isSticky, setCancelled
getBlock
getEventName, isAsynchronous
@Deprecated public BlockPistonExtendEvent(Block block, int length, BlockFace direction)
@Deprecated public int getLength()
原文:Get the amount of blocks which will be moved while extending.
public java.util.List<Block> getBlocks()
原文:Get an immutable list of the blocks which will be moved by the extending.
public HandlerList getHandlers()
getHandlers
在类中 Event
public static HandlerList getHandlerList()