org.bukkit.event.block
Class BlockPistonRetractEvent

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.BlockPistonRetractEvent
All Implemented Interfaces:
Cancellable

public class BlockPistonRetractEvent
extends BlockPistonEvent

Called when a piston retracts


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
BlockPistonRetractEvent(Block block, BlockFace direction)
           
 
Method Summary
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 Location getRetractLocation()
          Gets the location where the possible moving block might be if the retracting piston is sticky.
 
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

BlockPistonRetractEvent

public BlockPistonRetractEvent(Block block,
                               BlockFace direction)
Method Detail

getRetractLocation

public Location getRetractLocation()
Gets the location where the possible moving block might be if the retracting piston is sticky.

Returns:
The possible location of the possibly moving block.

getHandlers

public HandlerList getHandlers()
Specified by:
getHandlers in class Event

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2014. All rights reserved.