Added untested /editstack and /editstackair commands to stack the region towards a direction.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user