Added untested /editstack and /editstackair commands to stack the region towards a direction.

This commit is contained in:
sk89q
2010-10-05 13:46:31 -07:00
parent 05524be2d2
commit ba828c1a3a
3 changed files with 156 additions and 6 deletions

View File

@@ -273,6 +273,36 @@ public class WorldEditSession {
(getUpperZ() - getLowerZ() + 1);
}
/**
* Get the width (X-direction) of the selected region.
*
* @return
* @throws IncompleteRegionException
*/
public int getWidth() throws IncompleteRegionException {
return getUpperX() - getLowerX() + 1;
}
/**
* Get the length (Z-direction) of the selected region.
*
* @return
* @throws IncompleteRegionException
*/
public int getLength() throws IncompleteRegionException {
return getUpperY() - getLowerY() + 1;
}
/**
* Get the height (Y-direction) of the selected region.
*
* @return
* @throws IncompleteRegionException
*/
public int getHeight() throws IncompleteRegionException {
return getUpperZ() - getLowerZ() + 1;
}
/**
* Gets the clipboard.
*