Class BlockPistonExtendEvent

java.lang.Object
All Implemented Interfaces:
Cancellable

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

  • Method Details

    • getLength

      @Deprecated 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

      public java.util.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

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

      public static HandlerList getHandlerList()