Interface IDelegateRegion
- All Superinterfaces:
Cloneable, IBatchProcessor, Iterable<BlockVector3>, Region
- All Known Implementing Classes:
FaweMask
-
Method Summary
Modifier and TypeMethodDescriptiondefault Regionclone()Make a clone of the region.default booleancontains(BlockVector3 position) Returns true based on whether the region contains the point.default voidcontract(BlockVector3... changes) Contract the region.default voidexpand(BlockVector3... changes) Expand the region.default intgetArea()Get the number of blocks in the region.default Vector3Get the center point of a region.default Set<BlockVector3> Return a list of 16*16*16 chunks in a region.default Set<BlockVector2> Get a list of chunks.default intGet Y-size.default intGet Z-size.default BlockVector3Get the upper point of a region.default BlockVector3Get the lower point of a region.default intgetWidth()Get X-size.default WorldgetWorld()Sets the world that the selection is in.default Iterator<BlockVector3> iterator()default List<BlockVector2> polygonize(int maxPoints) Polygonizes a cross-section or a 2D projection of the region orthogonal to the Y axis.default voidSets the world that the selection is in.default voidshift(BlockVector3 change) Shift the region.Methods inherited from interface IBatchProcessor
flush, join, joinPost, postProcess, postProcessSet, processGet, processGet, remove, trimNBT, trimNBT, trimYMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Region
construct, contains, contains, containsChunk, containsEntireCuboid, filter, filter, filter, filter, filter, getBoundingBox, getDimensions, getMaximumY, getMinimumY, getScope, getVolume, isGlobal, processSet, processSet
-
Method Details
-
getRegion
Region getRegion() -
iterator
- Specified by:
iteratorin interfaceIterable<BlockVector3>
-
getMinimumPoint
Description copied from interface:RegionGet the lower point of a region.- Specified by:
getMinimumPointin interfaceRegion- Returns:
- min. point
-
getMaximumPoint
Description copied from interface:RegionGet the upper point of a region.- Specified by:
getMaximumPointin interfaceRegion- Returns:
- max. point
-
getCenter
-
getArea
-
getWidth
-
getHeight
-
getLength
-
expand
Description copied from interface:RegionExpand the region.- Specified by:
expandin interfaceRegion- Parameters:
changes- array/arguments with multiple related changes- Throws:
RegionOperationException- if the operation cannot be performed
-
contract
Description copied from interface:RegionContract the region.- Specified by:
contractin interfaceRegion- Parameters:
changes- array/arguments with multiple related changes- Throws:
RegionOperationException- if the operation cannot be performed
-
shift
Description copied from interface:RegionShift the region.- Specified by:
shiftin interfaceRegion- Parameters:
change- the change- Throws:
RegionOperationException- if the operation cannot be performed
-
contains
Description copied from interface:RegionReturns true based on whether the region contains the point. -
getChunks
Description copied from interface:RegionGet 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
-
getWorld
-
setWorld
-
clone
-
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.
-