org.bukkit.event.block
Class BlockPistonExtendEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockPistonEvent
org.bukkit.event.block.BlockPistonExtendEvent
- All Implemented Interfaces:
- Cancellable
public class BlockPistonExtendEvent
- extends BlockPistonEvent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockPistonExtendEvent
public BlockPistonExtendEvent(Block block,
int length,
BlockFace direction)
getLength
public int getLength()
- Get the amount of blocks which will be moved while extending.
- Returns:
- the amount of moving blocks
getBlocks
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.
getHandlers
public HandlerList getHandlers()
- Specified by:
getHandlers
in class Event
getHandlerList
public static HandlerList getHandlerList()
Copyright © 2013. All Rights Reserved.