Class BlockPistonExtendEvent

    • Constructor Detail

      • BlockPistonExtendEvent

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

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

      • 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

        @NotNull
        public @NotNull 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 @NotNull HandlerList getHandlerList()