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