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

Public Member Functions

 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 ()
 
abstract HandlerList getHandlers ()
 
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.
 

Additional Inherited Members

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

Detailed Description

Definition at line 8 of file BlockPistonEvent.java.

Constructor & Destructor Documentation

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

Definition at line 12 of file BlockPistonEvent.java.

Member Function Documentation

BlockFace org.bukkit.event.block.BlockPistonEvent.getDirection ( )

Return the direction in which the piston will operate.

Returns
direction of the piston

Definition at line 39 of file BlockPistonEvent.java.

Referenced by org.bukkit.event.block.BlockPistonExtendEvent.getBlocks(), and org.bukkit.event.block.BlockPistonRetractEvent.getRetractLocation().

boolean org.bukkit.event.block.BlockPistonEvent.isCancelled ( )

Definition at line 17 of file BlockPistonEvent.java.

boolean org.bukkit.event.block.BlockPistonEvent.isSticky ( )

Returns true if the Piston in the event is sticky.

Returns
stickiness of the piston

Definition at line 30 of file BlockPistonEvent.java.

References org.bukkit.event.block.BlockEvent.block, org.bukkit.block.Block.getType(), and org.bukkit.Material.PISTON_STICKY_BASE.

void org.bukkit.event.block.BlockPistonEvent.setCancelled ( boolean  cancelled)

Definition at line 21 of file BlockPistonEvent.java.


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