Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.block.BlockPistonRetractEvent Class Reference
Inheritance diagram for org.bukkit.event.block.BlockPistonRetractEvent:
org.bukkit.event.block.BlockPistonEvent org.bukkit.event.block.BlockEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 BlockPistonRetractEvent (final Block block, final BlockFace direction)
 
Location getRetractLocation ()
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.block.BlockPistonEvent
 BlockPistonEvent (final Block block, final BlockFace direction)
 
boolean isCancelled ()
 
void setCancelled (boolean cancelled)
 
boolean isSticky ()
 
BlockFace getDirection ()
 
- Public Member Functions inherited from org.bukkit.event.block.BlockEvent
 BlockEvent (final Block theBlock)
 
final Block getBlock ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.block.BlockEvent
Block block
 

Detailed Description

Called when a piston retracts

Definition at line 11 of file BlockPistonRetractEvent.java.

Member Function Documentation

Location org.bukkit.event.block.BlockPistonRetractEvent.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.

Definition at line 23 of file BlockPistonRetractEvent.java.

References org.bukkit.event.block.BlockEvent.getBlock(), org.bukkit.event.block.BlockPistonEvent.getDirection(), org.bukkit.block.Block.getLocation(), and org.bukkit.block.Block.getRelative().

23  {
25  }
Block getRelative(int modX, int modY, int modZ)

The documentation for this class was generated from the following file: