public class EditSession extends java.lang.Object implements Extent
Extent
that handles history, BlockBag
s, change limits,
block re-ordering, and much more. Most operations in WorldEdit use this class.
Most of the actual functionality is implemented with a number of other
Extent
s that are chained together. For example, history is logged
using the ChangeSetExtent
.
Modifier and Type | Class and Description |
---|---|
static class |
EditSession.Stage
Used by
setBlock(Vector, BlockStateHolder, Stage) to
determine which Extent s should be bypassed. |
Modifier and Type | Method and Description |
---|---|
int |
center(Region region,
Pattern pattern)
Sets the blocks at the center of the given region to the given pattern.
|
Operation |
commit()
Return an
Operation that should be called to tie up loose ends
(such as to commit changes in a buffer). |
int |
countBlocks(Region region,
java.util.Set<BlockStateHolder> searchBlocks)
Count the number of blocks of a list of types in a region.
|
Entity |
createEntity(Location location,
BaseEntity entity)
Create an entity at the given location.
|
int |
deformRegion(Region region,
Vector zero,
Vector unit,
java.lang.String expressionString) |
void |
disableQueue()
Disable the queue.
|
int |
drainArea(Vector origin,
double radius)
Drain nearby pools of water or lava.
|
int |
drawLine(Pattern pattern,
Vector pos1,
Vector pos2,
double radius,
boolean filled)
Draws a line (out of blocks) between two vectors.
|
int |
drawSpline(Pattern pattern,
java.util.List<Vector> nodevectors,
double tension,
double bias,
double continuity,
double quality,
double radius,
boolean filled)
Draws a spline (out of blocks) between specified vectors.
|
void |
enableQueue()
Queue certain types of block for better reproduction of those blocks.
|
int |
fillXZ(Vector origin,
BlockStateHolder block,
double radius,
int depth,
boolean recursive)
Fills an area recursively in the X/Z directions.
|
int |
fillXZ(Vector origin,
Pattern pattern,
double radius,
int depth,
boolean recursive)
Fills an area recursively in the X/Z directions.
|
int |
fixLiquid(Vector origin,
double radius,
BlockType fluid)
Fix liquids so that they turn into stationary blocks and extend outward.
|
void |
flushQueue()
Finish off the queue.
|
BaseBiome |
getBiome(Vector2D position)
Get the biome at the given location.
|
BlockState |
getBlock(Vector position)
Get a snapshot of the block at the given location.
|
BlockBag |
getBlockBag()
Get the
BlockBag is used. |
int |
getBlockChangeCount()
Get the number of blocks changed, including repeated block changes.
|
int |
getBlockChangeLimit()
Get the maximum number of blocks that can be changed.
|
java.util.List<Countable<BlockStateHolder>> |
getBlockDistribution(Region region,
boolean fuzzy)
Get the block distribution inside a region.
|
ChangeSet |
getChangeSet()
Get the underlying
ChangeSet . |
java.util.List<? extends Entity> |
getEntities()
Get a list of all entities.
|
java.util.List<? extends Entity> |
getEntities(Region region)
Get a list of all entities within the given region.
|
BaseBlock |
getFullBlock(Vector position)
Get a immutable snapshot of the block at the given location.
|
int |
getHighestTerrainBlock(int x,
int z,
int minY,
int maxY)
Returns the highest solid 'terrain' block.
|
Mask |
getMask()
Get the mask.
|
Vector |
getMaximumPoint()
Get the maximum point in the extent.
|
Vector |
getMinimumPoint()
Get the minimum point in the extent.
|
SurvivalModeExtent |
getSurvivalExtent()
Get the
SurvivalModeExtent . |
World |
getWorld()
Get the world.
|
int |
green(Vector position,
double radius,
boolean onlyNormalDirt)
Make dirt green.
|
boolean |
hasFastMode()
Return fast mode status.
|
int |
hollowOutRegion(Region region,
int thickness,
Pattern pattern)
Hollows out the region (Semi-well-defined for non-cuboid selections).
|
boolean |
isQueueEnabled()
Returns queue status.
|
int |
makeBiomeShape(Region region,
Vector zero,
Vector unit,
BaseBiome biomeType,
java.lang.String expressionString,
boolean hollow) |
int |
makeCuboidFaces(Region region,
BlockStateHolder block)
Make the faces of the given region as if it was a
CuboidRegion . |
int |
makeCuboidFaces(Region region,
Pattern pattern)
Make the faces of the given region as if it was a
CuboidRegion . |
int |
makeCuboidWalls(Region region,
BlockStateHolder block)
Make the walls (all faces but those parallel to the X-Z plane) of the given region
as if it was a
CuboidRegion . |
int |
makeCuboidWalls(Region region,
Pattern pattern)
Make the walls (all faces but those parallel to the X-Z plane) of the given region
as if it was a
CuboidRegion . |
int |
makeCylinder(Vector pos,
Pattern block,
double radiusX,
double radiusZ,
int height,
boolean filled)
Makes a cylinder.
|
int |
makeCylinder(Vector pos,
Pattern block,
double radius,
int height,
boolean filled)
Makes a cylinder.
|
int |
makeFaces(Region region,
Pattern pattern)
Make the faces of the given region.
|
int |
makeForest(Vector basePosition,
int size,
double density,
TreeGenerator.TreeType treeType)
Makes a forest.
|
int |
makePumpkinPatches(Vector position,
int apothem)
Makes pumpkin patches randomly in an area around the given position.
|
int |
makePyramid(Vector position,
Pattern block,
int size,
boolean filled)
Makes a pyramid.
|
int |
makeShape(Region region,
Vector zero,
Vector unit,
Pattern pattern,
java.lang.String expressionString,
boolean hollow) |
int |
makeSphere(Vector pos,
Pattern block,
double radius,
boolean filled)
Makes a sphere.
|
int |
makeSphere(Vector pos,
Pattern block,
double radiusX,
double radiusY,
double radiusZ,
boolean filled)
Makes a sphere or ellipsoid.
|
int |
makeWalls(Region region,
Pattern pattern)
Make the walls of the given region.
|
int |
moveCuboidRegion(Region region,
Vector dir,
int distance,
boolean copyAir,
BlockStateHolder replacement)
Move the blocks in a region a certain direction.
|
int |
moveRegion(Region region,
Vector dir,
int distance,
boolean copyAir,
BlockStateHolder replacement)
Move the blocks in a region a certain direction.
|
int |
naturalizeCuboidBlocks(Region region)
Turns the first 3 layers into dirt/grass and the bottom layers
into rock, like a natural Minecraft mountain.
|
int |
overlayCuboidBlocks(Region region,
BlockStateHolder block)
Places a layer of blocks on top of ground blocks in the given region
(as if it were a cuboid).
|
int |
overlayCuboidBlocks(Region region,
Pattern pattern)
Places a layer of blocks on top of ground blocks in the given region
(as if it were a cuboid).
|
java.util.Map<BlockType,java.lang.Integer> |
popMissingBlocks()
Gets the list of missing blocks and clears the list for the next
operation.
|
boolean |
rawSetBlock(Vector position,
BlockStateHolder block)
Set a block, bypassing both history and block re-ordering.
|
void |
redo(EditSession editSession)
Sets to new state.
|
int |
removeAbove(Vector position,
int apothem,
int height)
Remove a cuboid above the given position with a given apothem and a given height.
|
int |
removeBelow(Vector position,
int apothem,
int height)
Remove a cuboid below the given position with a given apothem and a given height.
|
int |
removeNear(Vector position,
BlockType blockType,
int apothem)
Remove blocks of a certain type nearby a given position.
|
int |
replaceBlocks(Region region,
Mask mask,
Pattern pattern)
Replaces all the blocks matching a given mask, within a given region, to a block
returned by a given pattern.
|
int |
replaceBlocks(Region region,
java.util.Set<BlockStateHolder> filter,
BlockStateHolder replacement)
Replaces all the blocks matching a given filter, within a given region, to a block
returned by a given pattern.
|
int |
replaceBlocks(Region region,
java.util.Set<BlockStateHolder> filter,
Pattern pattern)
Replaces all the blocks matching a given filter, within a given region, to a block
returned by a given pattern.
|
boolean |
setBiome(Vector2D position,
BaseBiome biome)
Set the biome.
|
boolean |
setBlock(Vector position,
BlockStateHolder block)
Change the block at the given location to the given block.
|
boolean |
setBlock(Vector position,
BlockStateHolder block,
EditSession.Stage stage)
Set a block, bypassing both history and block re-ordering.
|
boolean |
setBlock(Vector position,
Pattern pattern)
Sets the block at a position, subject to both history and block re-ordering.
|
void |
setBlockBag(BlockBag blockBag)
Set a
BlockBag to use. |
void |
setBlockChangeLimit(int limit)
Set the maximum number of blocks that can be changed.
|
int |
setBlocks(Region region,
BlockStateHolder block)
Sets all the blocks inside a region to a given block type.
|
int |
setBlocks(Region region,
Pattern pattern)
Sets all the blocks inside a region to a given pattern.
|
void |
setFastMode(boolean enabled)
Set whether fast mode is enabled.
|
void |
setMask(Mask mask)
Set a mask.
|
int |
simulateSnow(Vector position,
double radius)
Make snow in a radius.
|
int |
size()
Get the number of changed blocks.
|
boolean |
smartSetBlock(Vector position,
BlockStateHolder block)
Set a block, bypassing history but still utilizing block re-ordering.
|
int |
stackCuboidRegion(Region region,
Vector dir,
int count,
boolean copyAir)
Stack a cuboid region.
|
int |
thaw(Vector position,
double radius)
Thaw blocks in a radius.
|
void |
undo(EditSession editSession)
Restores all blocks to their initial state.
|
protected final World world
public World getWorld()
public int getBlockChangeLimit()
public void setBlockChangeLimit(int limit)
limit
- the limit (>= 0) or -1 for no limitpublic boolean isQueueEnabled()
public void enableQueue()
public void disableQueue()
public Mask getMask()
public void setMask(Mask mask)
mask
- mask or nullpublic SurvivalModeExtent getSurvivalExtent()
SurvivalModeExtent
.public void setFastMode(boolean enabled)
Fast mode may skip lighting checks or adjacent block notification.
enabled
- true to enablepublic boolean hasFastMode()
Fast mode may skip lighting checks or adjacent block notification.
public void setBlockBag(BlockBag blockBag)
BlockBag
to use.blockBag
- the block bag to set, or null to use nonepublic java.util.Map<BlockType,java.lang.Integer> popMissingBlocks()
public int getBlockChangeCount()
This number may not be accurate.
public BaseBiome getBiome(Vector2D position)
InputExtent
If there is no biome available, then the ocean biome should be returned.
getBiome
in interface InputExtent
position
- the (x, z) location to check the biome atpublic boolean setBiome(Vector2D position, BaseBiome biome)
OutputExtent
setBiome
in interface OutputExtent
position
- the (x, z) location to set the biome atbiome
- the biome to set topublic BlockState getBlock(Vector position)
InputExtent
If the given position is out of the bounds of the extent, then the behavior
is undefined (an air block could be returned). However, null
should not be returned.
The returned block is immutable and is a snapshot of the block at the time
of call. It has no position attached to it, so it could be reused in
Pattern
s and so on.
getBlock
in interface InputExtent
position
- position of the blockpublic BaseBlock getFullBlock(Vector position)
InputExtent
getFullBlock
in interface InputExtent
position
- position of the blockpublic int getHighestTerrainBlock(int x, int z, int minY, int maxY)
x
- the X coordinatez
- the Z coordinateminY
- minimal heightmaxY
- maximal heightpublic boolean setBlock(Vector position, BlockStateHolder block, EditSession.Stage stage) throws WorldEditException
position
- the position to set the block atblock
- the blockstage
- the levelWorldEditException
- thrown on a set errorpublic boolean rawSetBlock(Vector position, BlockStateHolder block)
position
- the position to set the block atblock
- the blockpublic boolean smartSetBlock(Vector position, BlockStateHolder block)
position
- the position to set the block atblock
- the blockpublic boolean setBlock(Vector position, BlockStateHolder block) throws MaxChangedBlocksException
OutputExtent
BlockStateHolder
to the world, so future changes to the
BlockStateHolder
do not affect the world until this method is called again.
The return value of this method indicates whether the change was probably successful. It may not be successful if, for example, the location is out of the bounds of the extent. It may be unsuccessful if the block passed is the same as the one in the world. However, the return value is only an estimation and it may be incorrect, but it could be used to count, for example, the approximate number of changes.
setBlock
in interface OutputExtent
position
- position of the blockblock
- block to setMaxChangedBlocksException
public boolean setBlock(Vector position, Pattern pattern) throws MaxChangedBlocksException
position
- the positionpattern
- a pattern to useMaxChangedBlocksException
- thrown if too many blocks are changed@Nullable public Entity createEntity(Location location, BaseEntity entity)
Extent
createEntity
in interface Extent
location
- the locationentity
- the entitypublic void undo(EditSession editSession)
editSession
- a new EditSession
to perform the undo inpublic void redo(EditSession editSession)
editSession
- a new EditSession
to perform the redo inpublic int size()
public Vector getMinimumPoint()
Extent
If the extent is unbounded, then a large (negative) value may be returned.
getMinimumPoint
in interface Extent
public Vector getMaximumPoint()
Extent
If the extent is unbounded, then a large (positive) value may be returned.
getMaximumPoint
in interface Extent
public java.util.List<? extends Entity> getEntities(Region region)
Extent
If the extent is not wholly loaded (i.e. a world being simulated in the game will not have every chunk loaded), then this list may not be incomplete.
getEntities
in interface Extent
region
- the region in which entities must be containedpublic java.util.List<? extends Entity> getEntities()
Extent
If the extent is not wholly loaded (i.e. a world being simulated in the game will not have every chunk loaded), then this list may not be incomplete.
getEntities
in interface Extent
public void flushQueue()
@Nullable public Operation commit()
OutputExtent
Operation
that should be called to tie up loose ends
(such as to commit changes in a buffer).commit
in interface OutputExtent
public int countBlocks(Region region, java.util.Set<BlockStateHolder> searchBlocks)
region
- the regionsearchBlocks
- the list of blocks to searchpublic int fillXZ(Vector origin, BlockStateHolder block, double radius, int depth, boolean recursive) throws MaxChangedBlocksException
origin
- the location to start fromblock
- the block to fill withradius
- the radius of the spherical area to filldepth
- the maximum depth, starting from the originrecursive
- whether a breadth-first search should be performedMaxChangedBlocksException
- thrown if too many blocks are changedpublic int fillXZ(Vector origin, Pattern pattern, double radius, int depth, boolean recursive) throws MaxChangedBlocksException
origin
- the origin to start the fill frompattern
- the pattern to fill withradius
- the radius of the spherical area to fill, with 0 as the smallest radiusdepth
- the maximum depth, starting from the origin, with 1 as the smallest depthrecursive
- whether a breadth-first search should be performedMaxChangedBlocksException
- thrown if too many blocks are changedpublic int removeAbove(Vector position, int apothem, int height) throws MaxChangedBlocksException
position
- base positionapothem
- an apothem of the cuboid (on the XZ plane), where the minimum is 1height
- the height of the cuboid, where the minimum is 1MaxChangedBlocksException
- thrown if too many blocks are changedpublic int removeBelow(Vector position, int apothem, int height) throws MaxChangedBlocksException
position
- base positionapothem
- an apothem of the cuboid (on the XZ plane), where the minimum is 1height
- the height of the cuboid, where the minimum is 1MaxChangedBlocksException
- thrown if too many blocks are changedpublic int removeNear(Vector position, BlockType blockType, int apothem) throws MaxChangedBlocksException
position
- center position of cuboidblockType
- the block type to matchapothem
- an apothem of the cuboid, where the minimum is 1MaxChangedBlocksException
- thrown if too many blocks are changedpublic int setBlocks(Region region, BlockStateHolder block) throws MaxChangedBlocksException
region
- the regionblock
- the blockMaxChangedBlocksException
- thrown if too many blocks are changedpublic int setBlocks(Region region, Pattern pattern) throws MaxChangedBlocksException
region
- the regionpattern
- the pattern that provides the replacement blockMaxChangedBlocksException
- thrown if too many blocks are changedpublic int replaceBlocks(Region region, java.util.Set<BlockStateHolder> filter, BlockStateHolder replacement) throws MaxChangedBlocksException
region
- the region to replace the blocks withinfilter
- a list of block types to match, or null to use ExistingBlockMask
replacement
- the replacement blockMaxChangedBlocksException
- thrown if too many blocks are changedpublic int replaceBlocks(Region region, java.util.Set<BlockStateHolder> filter, Pattern pattern) throws MaxChangedBlocksException
region
- the region to replace the blocks withinfilter
- a list of block types to match, or null to use ExistingBlockMask
pattern
- the pattern that provides the new blocksMaxChangedBlocksException
- thrown if too many blocks are changedpublic int replaceBlocks(Region region, Mask mask, Pattern pattern) throws MaxChangedBlocksException
region
- the region to replace the blocks withinmask
- the mask that blocks must matchpattern
- the pattern that provides the new blocksMaxChangedBlocksException
- thrown if too many blocks are changedpublic int center(Region region, Pattern pattern) throws MaxChangedBlocksException
region
- the region to find the center ofpattern
- the replacement patternMaxChangedBlocksException
- thrown if too many blocks are changedpublic int makeCuboidFaces(Region region, BlockStateHolder block) throws MaxChangedBlocksException
CuboidRegion
.region
- the regionblock
- the block to placeMaxChangedBlocksException
- thrown if too many blocks are changedpublic int makeCuboidFaces(Region region, Pattern pattern) throws MaxChangedBlocksException
CuboidRegion
.region
- the regionpattern
- the pattern to placeMaxChangedBlocksException
- thrown if too many blocks are changedpublic int makeFaces(Region region, Pattern pattern) throws MaxChangedBlocksException
region
- the regionpattern
- the pattern to placeMaxChangedBlocksException
- thrown if too many blocks are changedpublic int makeCuboidWalls(Region region, BlockStateHolder block) throws MaxChangedBlocksException
CuboidRegion
.region
- the regionblock
- the block to placeMaxChangedBlocksException
- thrown if too many blocks are changedpublic int makeCuboidWalls(Region region, Pattern pattern) throws MaxChangedBlocksException
CuboidRegion
.region
- the regionpattern
- the pattern to placeMaxChangedBlocksException
- thrown if too many blocks are changedpublic int makeWalls(Region region, Pattern pattern) throws MaxChangedBlocksException
region
- the regionpattern
- the pattern to placeMaxChangedBlocksException
- thrown if too many blocks are changedpublic int overlayCuboidBlocks(Region region, BlockStateHolder block) throws MaxChangedBlocksException
region
- the regionblock
- the placed blockMaxChangedBlocksException
- thrown if too many blocks are changedpublic int overlayCuboidBlocks(Region region, Pattern pattern) throws MaxChangedBlocksException
region
- the regionpattern
- the placed block patternMaxChangedBlocksException
- thrown if too many blocks are changedpublic int naturalizeCuboidBlocks(Region region) throws MaxChangedBlocksException
region
- the region to affectMaxChangedBlocksException
- thrown if too many blocks are changedpublic int stackCuboidRegion(Region region, Vector dir, int count, boolean copyAir) throws MaxChangedBlocksException
region
- the region to stackdir
- the direction to stackcount
- the number of times to stackcopyAir
- true to also copy air blocksMaxChangedBlocksException
- thrown if too many blocks are changedpublic int moveRegion(Region region, Vector dir, int distance, boolean copyAir, BlockStateHolder replacement) throws MaxChangedBlocksException
region
- the region to movedir
- the directiondistance
- the distance to movecopyAir
- true to copy air blocksreplacement
- the replacement block to fill in after moving, or null to use airMaxChangedBlocksException
- thrown if too many blocks are changedpublic int moveCuboidRegion(Region region, Vector dir, int distance, boolean copyAir, BlockStateHolder replacement) throws MaxChangedBlocksException
region
- the region to movedir
- the directiondistance
- the distance to movecopyAir
- true to copy air blocksreplacement
- the replacement block to fill in after moving, or null to use airMaxChangedBlocksException
- thrown if too many blocks are changedpublic int drainArea(Vector origin, double radius) throws MaxChangedBlocksException
origin
- the origin to drain from, which will search a 3x3 arearadius
- the radius of the removal, where a value should be 0 or greaterMaxChangedBlocksException
- thrown if too many blocks are changedpublic int fixLiquid(Vector origin, double radius, BlockType fluid) throws MaxChangedBlocksException
origin
- the original positionradius
- the radius to fixfluid
- the type of the fluidMaxChangedBlocksException
- thrown if too many blocks are changedpublic int makeCylinder(Vector pos, Pattern block, double radius, int height, boolean filled) throws MaxChangedBlocksException
pos
- Center of the cylinderblock
- The block pattern to useradius
- The cylinder's radiusheight
- The cylinder's up/down extent. If negative, extend downward.filled
- If false, only a shell will be generated.MaxChangedBlocksException
- thrown if too many blocks are changedpublic int makeCylinder(Vector pos, Pattern block, double radiusX, double radiusZ, int height, boolean filled) throws MaxChangedBlocksException
pos
- Center of the cylinderblock
- The block pattern to useradiusX
- The cylinder's largest north/south extentradiusZ
- The cylinder's largest east/west extentheight
- The cylinder's up/down extent. If negative, extend downward.filled
- If false, only a shell will be generated.MaxChangedBlocksException
- thrown if too many blocks are changedpublic int makeSphere(Vector pos, Pattern block, double radius, boolean filled) throws MaxChangedBlocksException
pos
- Center of the sphere or ellipsoidblock
- The block pattern to useradius
- The sphere's radiusfilled
- If false, only a shell will be generated.MaxChangedBlocksException
- thrown if too many blocks are changedpublic int makeSphere(Vector pos, Pattern block, double radiusX, double radiusY, double radiusZ, boolean filled) throws MaxChangedBlocksException
pos
- Center of the sphere or ellipsoidblock
- The block pattern to useradiusX
- The sphere/ellipsoid's largest north/south extentradiusY
- The sphere/ellipsoid's largest up/down extentradiusZ
- The sphere/ellipsoid's largest east/west extentfilled
- If false, only a shell will be generated.MaxChangedBlocksException
- thrown if too many blocks are changedpublic int makePyramid(Vector position, Pattern block, int size, boolean filled) throws MaxChangedBlocksException
position
- a positionblock
- a blocksize
- size of pyramidfilled
- true if filledMaxChangedBlocksException
- thrown if too many blocks are changedpublic int thaw(Vector position, double radius) throws MaxChangedBlocksException
position
- the positionradius
- the radiusMaxChangedBlocksException
- thrown if too many blocks are changedpublic int simulateSnow(Vector position, double radius) throws MaxChangedBlocksException
position
- a positionradius
- a radiusMaxChangedBlocksException
- thrown if too many blocks are changedpublic int green(Vector position, double radius, boolean onlyNormalDirt) throws MaxChangedBlocksException
position
- a positionradius
- a radiusonlyNormalDirt
- only affect normal dirt (data value 0)MaxChangedBlocksException
- thrown if too many blocks are changedpublic int makePumpkinPatches(Vector position, int apothem) throws MaxChangedBlocksException
position
- the base positionapothem
- the apothem of the (square) areaMaxChangedBlocksException
- thrown if too many blocks are changedpublic int makeForest(Vector basePosition, int size, double density, TreeGenerator.TreeType treeType) throws MaxChangedBlocksException
basePosition
- a positionsize
- a sizedensity
- between 0 and 1, inclusivetreeType
- the tree typeMaxChangedBlocksException
- thrown if too many blocks are changedpublic java.util.List<Countable<BlockStateHolder>> getBlockDistribution(Region region, boolean fuzzy)
region
- a regionpublic int makeShape(Region region, Vector zero, Vector unit, Pattern pattern, java.lang.String expressionString, boolean hollow) throws ExpressionException, MaxChangedBlocksException
public int deformRegion(Region region, Vector zero, Vector unit, java.lang.String expressionString) throws ExpressionException, MaxChangedBlocksException
public int hollowOutRegion(Region region, int thickness, Pattern pattern) throws MaxChangedBlocksException
region
- the region to hollow out.thickness
- the thickness of the shell to leave (manhattan distance)pattern
- The block pattern to useMaxChangedBlocksException
- thrown if too many blocks are changedpublic int drawLine(Pattern pattern, Vector pos1, Vector pos2, double radius, boolean filled) throws MaxChangedBlocksException
pattern
- The block pattern used to draw the line.pos1
- One of the points that define the line.pos2
- The other point that defines the line.radius
- The radius (thickness) of the line.filled
- If false, only a shell will be generated.MaxChangedBlocksException
- thrown if too many blocks are changedpublic int drawSpline(Pattern pattern, java.util.List<Vector> nodevectors, double tension, double bias, double continuity, double quality, double radius, boolean filled) throws MaxChangedBlocksException
pattern
- The block pattern used to draw the spline.nodevectors
- The list of vectors to draw through.tension
- The tension of every node.bias
- The bias of every node.continuity
- The continuity of every node.quality
- The quality of the spline. Must be greater than 0.radius
- The radius (thickness) of the spline.filled
- If false, only a shell will be generated.MaxChangedBlocksException
- thrown if too many blocks are changedpublic int makeBiomeShape(Region region, Vector zero, Vector unit, BaseBiome biomeType, java.lang.String expressionString, boolean hollow) throws ExpressionException, MaxChangedBlocksException