-
Method Summary
Make a clone of the region.
default boolean
Returns true based on whether the region contains the point.
default void
default void
default int
Get the number of blocks in the region.
Get the center point of a region.
Return a list of 16*16*16 chunks in a region.
default int
default int
Get the upper point of a region.
Get the lower point of a region.
default int
Sets the world that the selection is in.
Polygonizes a cross-section or a 2D projection of the region orthogonal to the Y axis.
default void
Sets the world that the selection is in.
default void
Methods inherited from interface com.fastasyncworldedit.core.queue.IBatchProcessor
flush, join, joinPost, postProcess, postProcessSet, processGet, processGet, remove, trimNBT, trimNBT, trimY
Methods inherited from interface com.sk89q.worldedit.regions.Region
construct, contains, contains, containsChunk, containsEntireCuboid, filter, filter, filter, filter, filter, getBoundingBox, getDimensions, getMaximumY, getMinimumY, getScope, getVolume, isGlobal, processSet, processSet
-
Method Details
-
-
-
getMinimumPoint
Description copied from interface: Region
Get the lower point of a region.
- Specified by:
getMinimumPoint in interface Region
- Returns:
- min. point
-
getMaximumPoint
Description copied from interface: Region
Get the upper point of a region.
- Specified by:
getMaximumPoint in interface Region
- Returns:
- max. point
-
getCenter
Description copied from interface: Region
Get the center point of a region.
Note: Coordinates will not be integers
if the corresponding lengths are even.
- Specified by:
getCenter in interface Region
- Returns:
- center point
-
getArea
default int getArea()
Description copied from interface: Region
Get the number of blocks in the region.
- Specified by:
getArea in interface Region
- Returns:
- number of blocks
-
getWidth
default int getWidth()
Description copied from interface: Region
Get X-size.
- Specified by:
getWidth in interface Region
- Returns:
- width
-
getHeight
default int getHeight()
Description copied from interface: Region
Get Y-size.
- Specified by:
getHeight in interface Region
- Returns:
- height
-
getLength
default int getLength()
Description copied from interface: Region
Get Z-size.
- Specified by:
getLength in interface Region
- Returns:
- length
-
expand
Description copied from interface: Region
Expand the region.
- Specified by:
expand in interface Region
- Parameters:
changes - array/arguments with multiple related changes
- Throws:
RegionOperationException - if the operation cannot be performed
-
contract
Description copied from interface: Region
Contract the region.
- Specified by:
contract in interface Region
- Parameters:
changes - array/arguments with multiple related changes
- Throws:
RegionOperationException - if the operation cannot be performed
-
shift
Description copied from interface: Region
Shift the region.
- Specified by:
shift in interface Region
- Parameters:
change - the change
- Throws:
RegionOperationException - if the operation cannot be performed
-
contains
Description copied from interface: Region
Returns true based on whether the region contains the point.
- Specified by:
contains in interface Region
- Parameters:
position - the position
- Returns:
- true if contained
-
getChunks
Description copied from interface: Region
Get a list of chunks.
- Specified by:
getChunks in interface Region
- Returns:
- a list of chunk coordinates
-
getChunkCubes
Description copied from interface: Region
Return a list of 16*16*16 chunks in a region.
- Specified by:
getChunkCubes in interface Region
- Returns:
- the chunk cubes this region overlaps with
-
getWorld
@Nullable
default World getWorld()
Description copied from interface: Region
Sets the world that the selection is in.
- Specified by:
getWorld in interface Region
- Returns:
- the world, or null
-
setWorld
default void setWorld(@Nullable
World world)
Description copied from interface: Region
Sets the world that the selection is in.
- Specified by:
setWorld in interface Region
- Parameters:
world - the world, which may be null
-
clone
Description copied from interface: Region
Make a clone of the region.
- Specified by:
clone in interface Region
- Returns:
- a cloned version
-
polygonize
Description copied from interface: Region
Polygonizes a cross-section or a 2D projection of the region orthogonal to the Y axis.
- Specified by:
polygonize in interface Region
- Parameters:
maxPoints - maximum number of points to generate. -1 for no limit.
- Returns:
- the points.