| Constructor and Description |
|---|
NullRegion() |
| Modifier and Type | Method and Description |
|---|---|
NullRegion |
clone()
Make a clone of the region.
|
boolean |
contains(Vector position)
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.
|
World |
getWorld()
Sets the world that the selection is in.
|
Iterator<BlockVector> |
iterator() |
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 that the selection is in.
|
void |
setWorld(World world)
Sets the world that the selection is in.
|
void |
shift(Vector change)
Shift the region.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Vector getMinimumPoint()
RegiongetMinimumPoint in interface Regionpublic Vector getMaximumPoint()
RegiongetMaximumPoint in interface Regionpublic Vector getCenter()
Regionpublic int getArea()
Regionpublic int getWidth()
Regionpublic int getHeight()
Regionpublic int getLength()
Regionpublic void expand(Vector... changes) throws RegionOperationException
Regionexpand in interface Regionchanges - array/arguments with multiple related changesRegionOperationExceptionpublic void contract(Vector... changes) throws RegionOperationException
Regioncontract in interface Regionchanges - array/arguments with multiple related changesRegionOperationExceptionpublic void shift(Vector change) throws RegionOperationException
Regionshift in interface Regionchange - the changeRegionOperationExceptionpublic boolean contains(Vector position)
Regionpublic Set<Vector2D> getChunks()
Regionpublic Set<Vector> getChunkCubes()
RegiongetChunkCubes in interface Regionpublic World getWorld()
Regionpublic void setWorld(World world)
Regionpublic void setWorld(LocalWorld world)
Regionpublic NullRegion clone()
Regionpublic List<BlockVector2D> polygonize(int maxPoints)
Regionpolygonize in interface RegionmaxPoints - maximum number of points to generate. -1 for no limit.public Iterator<BlockVector> iterator()
iterator in interface Iterable<BlockVector>Copyright © 2010-2014. All Rights Reserved.