Class BlockPistonExtendEvent

All Implemented Interfaces:

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

    • BlockPistonExtendEvent

      @Deprecated public BlockPistonExtendEvent(@NotNull Block block, int length, @NotNull BlockFace direction)
    • BlockPistonExtendEvent

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

    • getLength

      @Deprecated public int getLength()
      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.
      the amount of moving blocks
    • getBlocks

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

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

      @NotNull public static HandlerList getHandlerList()