Cancellablepublic class BlockPistonExtendEvent extends BlockPistonEvent
Event.Resultblock| Constructor | Description | 
|---|---|
| BlockPistonExtendEvent(@NotNull Block block,
                      int length,
                      @NotNull BlockFace direction) | Deprecated.  | 
| BlockPistonExtendEvent(@NotNull Block block,
                      @NotNull List<Block> blocks,
                      @NotNull BlockFace direction) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| @NotNull List<Block> | getBlocks() | Get an immutable list of the blocks which will be moved by the
 extending. | 
| static @NotNull HandlerList | getHandlerList() | |
| @NotNull HandlerList | getHandlers() | |
| int | getLength() | Deprecated. 
 slime blocks make the value of this method
          inaccurate due to blocks being pushed at the side | 
getBlockgetDirection, isCancelled, isSticky, setCancelledgetEventName, isAsynchronous@Deprecated public BlockPistonExtendEvent(@NotNull @NotNull Block block, int length, @NotNull @NotNull BlockFace direction)
@Deprecated public int getLength()
@NotNull public @NotNull List<Block> getBlocks()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.