Class BlockPistonRetractEvent

    • Constructor Detail

      • BlockPistonRetractEvent

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

      • 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.
      • getHandlerList

        @NotNull
        public static HandlerList getHandlerList()