public abstract class AbstractRegion extends Object implements Region
| Modifier and Type | Field and Description |
|---|---|
protected LocalWorld |
world
Stores the world.
|
| Constructor and Description |
|---|
AbstractRegion(LocalWorld world) |
| Modifier and Type | Method and Description |
|---|---|
AbstractRegion |
clone() |
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.
|
int |
getWidth()
Get X-size.
|
LocalWorld |
getWorld()
Get the world the selection is in
|
Iterator<BlockVector> |
iterator()
Get the 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 the selection is in
|
void |
shift(Vector change)
Shift the region.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, contract, expand, getMaximumPoint, getMinimumPointprotected LocalWorld world
public AbstractRegion(LocalWorld world)
public Vector getCenter()
Regionpublic Iterator<BlockVector> iterator()
iterator in interface Iterable<BlockVector>public LocalWorld getWorld()
Regionpublic void setWorld(LocalWorld world)
Regionpublic void shift(Vector change) throws RegionOperationException
Regionshift in interface RegionRegionOperationExceptionpublic AbstractRegion clone()
public List<BlockVector2D> polygonize(int maxPoints)
Regionpolygonize in interface RegionmaxPoints - maximum number of points to generate. -1 for no limit.public int getArea()
public int getHeight()
public int getLength()
public Set<Vector> getChunkCubes()
RegiongetChunkCubes in interface RegionCopyright © 2010-2014. All Rights Reserved.