org.bukkit.event.block
Class BlockPistonExtendEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.block.BlockEvent
          extended by org.bukkit.event.block.BlockPistonEvent
              extended by org.bukkit.event.block.BlockPistonExtendEvent
All Implemented Interfaces:
Cancellable

public class BlockPistonExtendEvent
extends BlockPistonEvent


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Field Summary
 
Fields inherited from class org.bukkit.event.block.BlockEvent
block
 
Constructor Summary
BlockPistonExtendEvent(Block block, int length, BlockFace direction)
           
 
Method Summary
 List<Block> getBlocks()
          Get an immutable list of the blocks which will be moved by the extending.
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 int getLength()
          Get the amount of blocks which will be moved while extending.
 
Methods inherited from class org.bukkit.event.block.BlockPistonEvent
getDirection, isCancelled, isSticky, setCancelled
 
Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
 
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockPistonExtendEvent

public BlockPistonExtendEvent(Block block,
                              int length,
                              BlockFace direction)
Method Detail

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.