public interface Region extends Iterable<BlockVector>, Cloneable
| Modifier and Type | Method and Description |
|---|---|
Region |
clone() |
boolean |
contains(Vector pt)
Returns true based on whether the region contains the point.
|
void |
contract(Vector... changes)
Contract the region.
|
void |
expand(Vector... changes)
Expand the region.
|
int |
getArea()
Get the number of blocks in the region.
|
Vector |
getCenter()
Get the center point of a region.
|
Set<Vector> |
getChunkCubes()
Return a list of 16*16*16 chunks in a region
|
Set<Vector2D> |
getChunks()
Get a list of chunks.
|
int |
getHeight()
Get Y-size.
|
int |
getLength()
Get Z-size.
|
Vector |
getMaximumPoint()
Get the upper point of a region.
|
Vector |
getMinimumPoint()
Get the lower point of a region.
|
int |
getWidth()
Get X-size.
|
LocalWorld |
getWorld()
Get the world the selection is in
|
List<BlockVector2D> |
polygonize(int maxPoints)
Polygonizes a cross-section or a 2D projection of the region orthogonal to the Y axis.
|
void |
setWorld(LocalWorld world)
Sets the world the selection is in
|
void |
shift(Vector change)
Shift the region.
|
Vector getMinimumPoint()
Vector getMaximumPoint()
Vector getCenter()
int getArea()
int getWidth()
int getHeight()
int getLength()
void expand(Vector... changes) throws RegionOperationException
changes - array/arguments with multiple related changesRegionOperationExceptionvoid contract(Vector... changes) throws RegionOperationException
changes - array/arguments with multiple related changesRegionOperationExceptionvoid shift(Vector change) throws RegionOperationException
change - RegionOperationExceptionboolean contains(Vector pt)
pt - Set<Vector> getChunkCubes()
LocalWorld getWorld()
void setWorld(LocalWorld world)
Region clone()
List<BlockVector2D> polygonize(int maxPoints)
maxPoints - maximum number of points to generate. -1 for no limit.Copyright © 2010-2014. All Rights Reserved.