Class BlockPistonRetractEvent

All Implemented Interfaces:
Cancellable

public class BlockPistonRetractEvent extends BlockPistonEvent
Called when a piston retracts
  • Constructor Details

    • BlockPistonRetractEvent

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

    • getRetractLocation

      @Deprecated @NotNull public Location getRetractLocation()
      Deprecated.
      Gets the location where the possible moving block might be if the retracting piston is sticky.
      Returns:
      The possible location of the possibly moving block.
    • getBlocks

      @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

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

      @NotNull public static HandlerList getHandlerList()