Bukkit  1.5.2-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.event.block.BlockPistonRetractEvent Class Reference
+ Inheritance diagram for org.bukkit.event.block.BlockPistonRetractEvent:
+ Collaboration diagram for org.bukkit.event.block.BlockPistonRetractEvent:

Public Member Functions

 BlockPistonRetractEvent (final Block block, final BlockFace direction)
 
Location getRetractLocation ()
 Gets the location where the possible moving block might be if the retracting piston is sticky.
 
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 ()
 Returns true if the Piston in the event is sticky.
 
BlockFace getDirection ()
 Return the direction in which the piston will operate.
 
- Public Member Functions inherited from org.bukkit.event.block.BlockEvent
 BlockEvent (final Block theBlock)
 
final Block getBlock ()
 Gets the block involved in this event.
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 The default constructor is defined for cleaner code.
 
 Event (boolean isAsync)
 This constructor is used to explicitly declare an event as synchronous or asynchronous.
 
String getEventName ()
 Convenience method for providing a user-friendly identifier.
 
final boolean isAsynchronous ()
 Any custom event that should not by synchronized with other events must use the specific constructor.
 
- Public Member Functions inherited from org.bukkit.event.Cancellable
boolean isCancelled ()
 Gets the cancellation state of this event.
 
void setCancelled (boolean cancel)
 Sets the cancellation state of this event.
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 8 of file BlockPistonRetractEvent.java.

Constructor & Destructor Documentation

org.bukkit.event.block.BlockPistonRetractEvent.BlockPistonRetractEvent ( final Block  block,
final BlockFace  direction 
)

Definition at line 10 of file BlockPistonRetractEvent.java.

Member Function Documentation

static HandlerList org.bukkit.event.block.BlockPistonRetractEvent.getHandlerList ( )
static

Definition at line 29 of file BlockPistonRetractEvent.java.

HandlerList org.bukkit.event.block.BlockPistonRetractEvent.getHandlers ( )
virtual

Implements org.bukkit.event.Event.

Definition at line 25 of file BlockPistonRetractEvent.java.

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 20 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().


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