Cancellable
public class BlockPistonExtendEvent extends BlockPistonEvent
Event.Result
block
Constructor | Description |
---|---|
BlockPistonExtendEvent(Block block,
int length,
BlockFace direction) |
Deprecated.
|
BlockPistonExtendEvent(Block block,
java.util.List<Block> blocks,
BlockFace direction) |
Modifier and Type | Method | Description |
---|---|---|
java.util.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
|
getBlock
getDirection, isCancelled, isSticky, setCancelled
getEventName, isAsynchronous
@Deprecated public BlockPistonExtendEvent(Block block, int length, BlockFace direction)
@Deprecated public int getLength()
public java.util.List<Block> getBlocks()
public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.