Package com.sk89q.worldedit.regions
Class NullRegion
java.lang.Object
com.sk89q.worldedit.regions.NullRegion
- All Implemented Interfaces:
IBatchProcessor,Region,Cloneable,Iterable<BlockVector3>
A region that contains no points.
-
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 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.fastasyncworldedit.core.queue.IBatchProcessor
flush, join, joinPost, postProcess, postProcessSet, processGet, processGet, remove, trimNBT, trimNBT, trimYMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.sk89q.worldedit.regions.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
Description copied from interface:RegionGet the center point of a region. Note: Coordinates will not be integers if the corresponding lengths are even. -
getVolume
public long getVolume()Description copied from interface:RegionGet the number of blocks in the region. -
getWidth
public int getWidth()Description copied from interface:RegionGet X-size. -
getHeight
public int getHeight()Description copied from interface:RegionGet Y-size. -
getLength
public int getLength()Description copied from interface:RegionGet Z-size. -
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
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. -
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.
-
iterator
- Specified by:
iteratorin interfaceIterable<BlockVector3>
-