Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
BlockPistonRetractEvent.java
1 package org.bukkit.event.block;
2 
3 import org.bukkit.Location;
4 import org.bukkit.block.Block;
7 
8 /**
9  * Called when a piston retracts
10  */
12  private static final HandlerList handlers = new HandlerList();
13  public BlockPistonRetractEvent(final Block block, final BlockFace direction) {
14  super(block, direction);
15  }
16 
17  /**
18  * Gets the location where the possible moving block might be if the
19  * retracting piston is sticky.
20  *
21  * @return The possible location of the possibly moving block.
22  */
25  }
26 
27  @Override
28  public HandlerList getHandlers() {
29  return handlers;
30  }
31 
32  public static HandlerList getHandlerList() {
33  return handlers;
34  }
35 }
Block getRelative(int modX, int modY, int modZ)