Added BlockFlowEvent, fixed up BlockFromToEvent, cleaned up
BlockListener By: durron597 <martin.jared@gmail.com>
This commit is contained in:
@@ -23,4 +23,13 @@ public class BlockFromToEvent extends BlockEvent {
|
||||
public BlockFace getFace() {
|
||||
return face;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience method for getting the faced block
|
||||
*
|
||||
* @return Block the faced block
|
||||
*/
|
||||
public Block getFacedBlock() {
|
||||
return block.getRelative(face.getModX(), face.getModY(), face.getModZ());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user