Bukkit
1.4.7-R1.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerator
Pages
BlockPistonRetractEvent.java
Go to the documentation of this file.
1
package
org.bukkit.event.block;
2
3
import
org.bukkit.Location;
4
import
org.bukkit.block.Block;
5
import
org.bukkit.block.BlockFace;
6
import
org.bukkit.event.HandlerList;
7
8
public
class
BlockPistonRetractEvent
extends
BlockPistonEvent
{
9
private
static
final
HandlerList
handlers =
new
HandlerList
();
10
public
BlockPistonRetractEvent
(
final
Block
block
,
final
BlockFace
direction) {
11
super(block, direction);
12
}
13
20
public
Location
getRetractLocation
() {
21
return
getBlock
().
getRelative
(
getDirection
(), 2).
getLocation
();
22
}
23
24
@Override
25
public
HandlerList
getHandlers
() {
26
return
handlers;
27
}
28
29
public
static
HandlerList
getHandlerList
() {
30
return
handlers;
31
}
32
}
org
bukkit
event
block
BlockPistonRetractEvent.java
Generated on Sun May 26 2013 03:16:36 for Bukkit by
1.8.2