Class NullRegion
java.lang.Object
com.sk89q.worldedit.regions.NullRegion
- All Implemented Interfaces:
IBatchProcessor, Region, Cloneable, Iterable<BlockVector3>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Make a clone of the region.booleancontains(BlockVector3 position) Returns true based on whether the region contains the point.voidcontract(BlockVector3... changes) Contract the region.voidexpand(BlockVector3... changes) Expand the region.Get 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.Get the upper point of a region.Get the lower point of a region.longGet the number of blocks in the region.intgetWidth()Get X-size.getWorld()Sets the world that the selection is in.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.Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, getArea, getBoundingBox, getDimensions, getMaximumY, getMinimumY, getScope, isGlobal, processSet, processSet
-
Constructor Details
-
NullRegion
public NullRegion()
-
-
Method Details
-
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
-
getVolume
-
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.
-
iterator
- Specified by:
iteratorin interfaceIterable<BlockVector3>
-