类 BlockPistonExtendEvent

所有已实现的接口:
Cancellable

public class BlockPistonExtendEvent extends BlockPistonEvent
活塞臂推出事件.
  • 构造器详细资料

    • BlockPistonExtendEvent

      @Deprecated public BlockPistonExtendEvent(Block block, int length, BlockFace direction)
      已过时。
    • BlockPistonExtendEvent

      public BlockPistonExtendEvent(Block block, List<Block> blocks, BlockFace direction)
  • 方法详细资料

    • getLength

      @Deprecated public int getLength()
      已过时。
      由于史莱姆方块的特性, 这个方法是不准确的因为它不包含史莱姆方块粘走的方块, 如MC版本低于1.8请无视此句.
      获取被活塞移动的方块数.

      原文:Get the amount of blocks which will be moved while extending.

      返回:
      被活塞移动的方块数.
    • getBlocks

      public List<Block> getBlocks()
      获取被活塞移动的不可改变的方块列表.

      原文:Get an immutable list of the blocks which will be moved by the extending.

      返回:
      被活塞移动的方块列表.
    • getHandlers

      public HandlerList getHandlers()
      指定者:
      getHandlers 在类中 Event
    • getHandlerList

      public static HandlerList getHandlerList()