public abstract class AbstractRegion extends Object implements Region
| Constructor and Description |
|---|
AbstractRegion(World world) |
| Modifier and Type | Method and Description |
|---|---|
AbstractRegion |
clone()
Make a clone of 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.
|
int |
getWidth()
Get X-size.
|
World |
getWorld()
Sets the world that 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 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, waitcontains, contract, expand, getMaximumPoint, getMinimumPointforEach, spliteratorprotected World world
public AbstractRegion(World world)
public Vector getCenter()
Regionpublic Iterator<BlockVector> iterator()
iterator in interface Iterable<BlockVector>public World getWorld()
Regionpublic void setWorld(LocalWorld world)
Regionpublic void setWorld(World world)
Regionpublic void shift(Vector change) throws RegionOperationException
Regionshift in interface Regionchange - the changeRegionOperationExceptionpublic AbstractRegion clone()
Regionpublic List<BlockVector2D> polygonize(int maxPoints)
Regionpolygonize in interface RegionmaxPoints - maximum number of points to generate. -1 for no limit.public int getArea()
public int getWidth()
public int getHeight()
public int getLength()
public Set<Vector> getChunkCubes()
RegiongetChunkCubes in interface RegionCopyright © 2010-2014. All Rights Reserved.