Add /center commmand

This commit is contained in:
aumgn
2012-08-29 10:00:26 +02:00
parent c759b9062c
commit 7fd5d1b61c
6 changed files with 53 additions and 0 deletions

View File

@ -44,6 +44,15 @@ public interface Region extends Iterable<BlockVector>, Cloneable {
*/
public Vector getMaximumPoint();
/**
* Get the center point of a region.
* Note: Coordinates will not be integers
* if the corresponding lengths are even.
*
* @return center point
*/
public Vector getCenter();
/**
* Get the number of blocks in the region.
*