Package com.sk89q.worldedit.regions
Class AbstractRegion
- All Implemented Interfaces:
IBatchProcessor,Region,Cloneable,Iterable<BlockVector3>,Collection<BlockVector3>,Set<BlockVector3>
- Direct Known Subclasses:
AbstractFlatRegion,BlockSet,ConvexPolyhedralRegion,CuboidRegion,CylinderRegion,EllipsoidRegion,FuzzyRegion,Polygonal2DRegion,PolyhedralRegion,RegionIntersection,TransformRegion
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Make a clone of the region.booleanGet the center point of a region.Return a list of 16*16*16 chunks in a region.Get a list of chunks.intGet Y-size.intGet Z-size.longGet the number of blocks in the region.intgetWidth()Get X-size.getWorld()Sets the world that the selection is in.protected final intprotected final intinthashCode()iterator()Get the iterator.polygonize(int maxPoints) Polygonizes a cross-section or a 2D projection of the region orthogonal to the Y axis.voidSets the world that the selection is in.voidshift(BlockVector3 change) Shift the region.intsize()Methods inherited from class java.util.AbstractSet
removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface com.fastasyncworldedit.core.queue.IBatchProcessor
flush, join, joinPost, postProcess, postProcessSet, processGet, processGet, remove, trimNBT, trimNBT, trimYMethods inherited from interface com.sk89q.worldedit.regions.Region
construct, contains, contains, contains, containsChunk, containsEntireCuboid, contract, expand, filter, filter, filter, filter, filter, getArea, getBoundingBox, getDimensions, getMaximumPoint, getMaximumY, getMinimumPoint, getMinimumY, getScope, isGlobal, processSet, processSet
-
Field Details
-
world
-
-
Constructor Details
-
AbstractRegion
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<BlockVector3>- Specified by:
sizein interfaceSet<BlockVector3>- Specified by:
sizein classAbstractCollection<BlockVector3>
-
getCenter
Description copied from interface:RegionGet the center point of a region. Note: Coordinates will not be integers if the corresponding lengths are even. -
iterator
Get the iterator.- Specified by:
iteratorin interfaceCollection<BlockVector3>- Specified by:
iteratorin interfaceIterable<BlockVector3>- Specified by:
iteratorin interfaceSet<BlockVector3>- Specified by:
iteratorin classAbstractCollection<BlockVector3>- Returns:
- iterator of points inside the region
-
getWorld
Description copied from interface:RegionSets the world that the selection is in. -
setWorld
Description copied from interface:RegionSets the world that the selection is in. -
shift
Description copied from interface:RegionShift the region.- Specified by:
shiftin interfaceRegion- Parameters:
change- the change- Throws:
RegionOperationException- if the operation cannot be performed
-
clone
Description copied from interface:RegionMake a clone of the region. -
polygonize
Description copied from interface:RegionPolygonizes a cross-section or a 2D projection of the region orthogonal to the Y axis.- Specified by:
polygonizein interfaceRegion- Parameters:
maxPoints- maximum number of points to generate. -1 for no limit.- Returns:
- the points.
-
getVolume
public long getVolume()Description copied from interface:RegionGet the number of blocks in the region. -
getWidth
public int getWidth()Get X-size. -
getHeight
public int getHeight()Get Y-size. -
getLength
public int getLength()Get Z-size. -
getChunks
Get a list of chunks. -
getChunkCubes
Description copied from interface:RegionReturn a list of 16*16*16 chunks in a region.- Specified by:
getChunkCubesin interfaceRegion- Returns:
- the chunk cubes this region overlaps with
-
getWorldMinY
protected final int getWorldMinY() -
getWorldMaxY
protected final int getWorldMaxY() -
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<BlockVector3>- Specified by:
hashCodein interfaceSet<BlockVector3>- Overrides:
hashCodein classAbstractSet<BlockVector3>
-
equals
- Specified by:
equalsin interfaceCollection<BlockVector3>- Specified by:
equalsin interfaceSet<BlockVector3>- Overrides:
equalsin classAbstractSet<BlockVector3>
-