public class RegionIntersection extends AbstractRegion
iterator() returns a special iterator that will iterate through
the iterators of each region in an undefined sequence. Some positions may
be repeated if the position is contained in more than one region, but this cannot
be guaranteed to occur.
world| Constructor and Description |
|---|
RegionIntersection(List<Region> regions)
Create a new instance with the included list of regions.
|
RegionIntersection(LocalWorld world,
List<Region> regions)
Create a new instance with the included list of regions.
|
RegionIntersection(LocalWorld world,
Region... regions)
Create a new instance with the included list of regions.
|
RegionIntersection(Region... regions)
Create a new instance with the included list of regions.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Vector |
getMaximumPoint()
Get the upper point of a region.
|
Vector |
getMinimumPoint()
Get the lower point of a region.
|
Iterator<BlockVector> |
iterator()
Get the iterator.
|
clone, getArea, getCenter, getChunkCubes, getChunks, getHeight, getLength, getWidth, getWorld, polygonize, setWorld, setWorld, shiftequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic RegionIntersection(List<Region> regions)
regions - a list of regions, which is copiedpublic RegionIntersection(Region... regions)
regions - a list of regions, which is copiedpublic RegionIntersection(LocalWorld world, List<Region> regions)
world - the worldregions - a list of regions, which is copiedpublic RegionIntersection(LocalWorld world, Region... regions)
world - the worldregions - an array of regions, which is copiedpublic Vector getMinimumPoint()
Regionpublic Vector getMaximumPoint()
Regionpublic 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 boolean contains(Vector position)
Regionposition - the positionpublic Iterator<BlockVector> iterator()
AbstractRegioniterator in interface Iterable<BlockVector>iterator in class AbstractRegionCopyright © 2010-2014. All Rights Reserved.