Class BlockPistonExtendEvent

All Implemented Interfaces:
Cancellable

public class BlockPistonExtendEvent extends BlockPistonEvent
Called when a piston extends
  • Constructor Details Link icon

    • BlockPistonExtendEvent Link icon

      @Deprecated(since="1.8") public BlockPistonExtendEvent(@NotNull Block block, int length, @NotNull BlockFace direction)
      Deprecated.
    • BlockPistonExtendEvent Link icon

      public BlockPistonExtendEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction)
  • Method Details Link icon

    • getLength Link icon

      @Deprecated(since="1.8") public int getLength()
      Deprecated.
      slime blocks make the value of this method inaccurate due to blocks being pushed at the side
      Get the amount of blocks which will be moved while extending.
      Returns:
      the amount of moving blocks
    • getBlocks Link icon

      @NotNull public List<Block> getBlocks()
      Get an immutable list of the blocks which will be moved by the extending.
      Returns:
      Immutable list of the moved blocks.
    • getHandlers Link icon

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList Link icon

      @NotNull public static HandlerList getHandlerList()