public class EllipsoidRegion extends AbstractRegion
world| Constructor and Description |
|---|
EllipsoidRegion(EllipsoidRegion ellipsoidRegion) |
EllipsoidRegion(LocalWorld world,
Vector center,
Vector radius)
Deprecated.
|
EllipsoidRegion(Vector pos1,
Vector pos2)
Construct a new instance of this ellipsoid region.
|
EllipsoidRegion(World world,
Vector center,
Vector radius)
Construct a new instance of this ellipsoid region.
|
| Modifier and Type | Method and Description |
|---|---|
EllipsoidRegion |
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.
|
void |
extendRadius(Vector minRadius) |
int |
getArea()
Get the number of blocks in the region.
|
Vector |
getCenter()
Get the center.
|
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.
|
Vector |
getRadius()
Get the radii.
|
int |
getWidth()
Get X-size.
|
void |
setCenter(Vector center)
Set the center.
|
void |
setRadius(Vector radius)
Set the radii.
|
void |
shift(Vector change)
Shift the region.
|
String |
toString()
Returns string representation in the format
"(centerX, centerY, centerZ) - (radiusX, radiusY, radiusZ)".
|
getChunkCubes, getWorld, iterator, polygonize, setWorld, setWorldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic EllipsoidRegion(Vector pos1, Vector pos2)
pos1 - the first positionpos2 - the second position@Deprecated public EllipsoidRegion(LocalWorld world, Vector center, Vector radius)
public EllipsoidRegion(World world, Vector center, Vector radius)
world - the worldcenter - the centerradius - the radiuspublic EllipsoidRegion(EllipsoidRegion ellipsoidRegion)
public Vector getMinimumPoint()
Regionpublic Vector getMaximumPoint()
Regionpublic int getArea()
AbstractRegiongetArea in interface RegiongetArea in class AbstractRegionpublic int getWidth()
AbstractRegiongetWidth in interface RegiongetWidth in class AbstractRegionpublic int getHeight()
AbstractRegiongetHeight in interface RegiongetHeight in class AbstractRegionpublic int getLength()
AbstractRegiongetLength in interface RegiongetLength in class AbstractRegionpublic void expand(Vector... changes) throws RegionOperationException
Regionchanges - array/arguments with multiple related changesRegionOperationExceptionpublic void contract(Vector... changes) throws RegionOperationException
Regionchanges - array/arguments with multiple related changesRegionOperationExceptionpublic void shift(Vector change) throws RegionOperationException
Regionshift in interface Regionshift in class AbstractRegionchange - the changeRegionOperationExceptionpublic Vector getCenter()
getCenter in interface RegiongetCenter in class AbstractRegionpublic void setCenter(Vector center)
center - the centerpublic Vector getRadius()
public void setRadius(Vector radius)
radius - the radiuspublic Set<Vector2D> getChunks()
AbstractRegiongetChunks in interface RegiongetChunks in class AbstractRegionpublic boolean contains(Vector position)
Regionposition - the positionpublic String toString()
public void extendRadius(Vector minRadius)
public EllipsoidRegion clone()
Regionclone in interface Regionclone in class AbstractRegionCopyright © 2010-2014. All Rights Reserved.