Package com.sk89q.worldedit.command
Class RegionCommands
java.lang.Object
com.sk89q.worldedit.command.RegionCommands
Commands that operate on regions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
center
(Actor actor, EditSession editSession, Region region, Pattern pattern) int
curve
(Actor actor, EditSession editSession, Region region, Pattern pattern, int thickness, boolean shell) int
deform
(Actor actor, LocalSession session, EditSession editSession, Region region, List<String> expression, boolean useRawCoords, boolean offset, boolean offsetCenter) int
faces
(Actor actor, EditSession editSession, Region region, Pattern pattern) int
flora
(Actor actor, EditSession editSession, Region region, double density) int
forest
(Actor actor, EditSession editSession, Region region, TreeGenerator.TreeType type, double density) int
hollow
(Actor actor, EditSession editSession, Region region, int thickness, Pattern pattern) int
line
(Actor actor, EditSession editSession, Region region, Pattern pattern, int thickness, boolean shell) int
move
(Actor actor, World world, EditSession editSession, LocalSession session, Region region, int multiplier, BlockVector3 offset, Pattern replace, boolean moveSelection, boolean ignoreAirBlocks, boolean copyEntities, boolean copyBiomes, Mask mask) int
naturalize
(Actor actor, EditSession editSession, Region region) int
overlay
(Actor actor, EditSession editSession, Region region, Pattern pattern) int
int
set
(Actor actor, EditSession editSession, Region region, Pattern pattern) int
smooth
(Actor actor, EditSession editSession, Region region, int iterations, Mask mask) int
snowSmooth
(Actor actor, EditSession editSession, Region region, int iterations, int snowBlockCount, Mask mask) int
stack
(Actor actor, World world, EditSession editSession, LocalSession session, Region region, int count, BlockVector3 offset, boolean moveSelection, boolean ignoreAirBlocks, boolean copyEntities, boolean copyBiomes, boolean blockUnits, Mask mask) int
walls
(Actor actor, EditSession editSession, Region region, Pattern pattern)
-
Constructor Details
-
RegionCommands
public RegionCommands()Create a new instance.
-
-
Method Details
-
set
public int set(Actor actor, EditSession editSession, Region region, @Arg(desc="The pattern of blocks to set") Pattern pattern) -
line
public int line(Actor actor, EditSession editSession, Region region, @Arg(desc="The pattern of blocks to place") Pattern pattern, @Arg(desc="The thickness of the line",def="0") int thickness, @Switch(name='h',desc="Generate only a shell") boolean shell) throws WorldEditException - Throws:
WorldEditException
-
curve
public int curve(Actor actor, EditSession editSession, Region region, @Arg(desc="The pattern of blocks to place") Pattern pattern, @Arg(desc="The thickness of the curve",def="0") int thickness, @Switch(name='h',desc="Generate only a shell") boolean shell) throws WorldEditException - Throws:
WorldEditException
-
replace
public int replace(Actor actor, EditSession editSession, Region region, @Arg(desc="The mask representing blocks to replace",def="") Mask from, @Arg(desc="The pattern of blocks to replace with") Pattern to) throws WorldEditException - Throws:
WorldEditException
-
overlay
public int overlay(Actor actor, EditSession editSession, Region region, @Arg(desc="The pattern of blocks to overlay") Pattern pattern) throws WorldEditException - Throws:
WorldEditException
-
center
public int center(Actor actor, EditSession editSession, Region region, @Arg(desc="The pattern of blocks to set") Pattern pattern) throws WorldEditException - Throws:
WorldEditException
-
naturalize
public int naturalize(Actor actor, EditSession editSession, Region region) throws WorldEditException - Throws:
WorldEditException
-
walls
public int walls(Actor actor, EditSession editSession, Region region, @Arg(desc="The pattern of blocks to set") Pattern pattern) throws WorldEditException - Throws:
WorldEditException
-
faces
public int faces(Actor actor, EditSession editSession, Region region, @Arg(desc="The pattern of blocks to set") Pattern pattern) throws WorldEditException - Throws:
WorldEditException
-
smooth
public int smooth(Actor actor, EditSession editSession, Region region, @Arg(desc="# of iterations to perform",def="1") int iterations, @Arg(desc="The mask of blocks to use as the height map",def="") Mask mask) throws WorldEditException - Throws:
WorldEditException
-
snowSmooth
public int snowSmooth(Actor actor, EditSession editSession, Region region, @Arg(desc="# of iterations to perform",def="1") int iterations, @ArgFlag(name='l',desc="Set the amount of snow blocks under the snow",def="1") int snowBlockCount, @ArgFlag(name='m',desc="The mask of blocks to use as the height map") Mask mask) throws WorldEditException - Throws:
WorldEditException
-
move
public int move(Actor actor, World world, EditSession editSession, LocalSession session, Region region, @Arg(desc="number of times to apply the offset",def="1") int multiplier, @Arg(desc="The offset to move",def="forward") BlockVector3 offset, @Arg(desc="The pattern of blocks to leave",def="air") Pattern replace, @Switch(name='s',desc="Shift the selection to the target location") boolean moveSelection, @Switch(name='a',desc="Ignore air blocks") boolean ignoreAirBlocks, @Switch(name='e',desc="Also copy entities") boolean copyEntities, @Switch(name='b',desc="Also copy biomes") boolean copyBiomes, @ArgFlag(name='m',desc="Set the include mask, non-matching blocks become air") Mask mask) throws WorldEditException - Throws:
WorldEditException
-
stack
public int stack(Actor actor, World world, EditSession editSession, LocalSession session, Region region, @Arg(desc="# of copies to stack",def="1") int count, @Arg(desc="How far to move the contents each stack",def="forward") BlockVector3 offset, @Switch(name='s',desc="Shift the selection to the last stacked copy") boolean moveSelection, @Switch(name='a',desc="Ignore air blocks") boolean ignoreAirBlocks, @Switch(name='e',desc="Also copy entities") boolean copyEntities, @Switch(name='b',desc="Also copy biomes") boolean copyBiomes, @Switch(name='r',desc="Use block units") boolean blockUnits, @ArgFlag(name='m',desc="Set the include mask, non-matching blocks become air") Mask mask) throws WorldEditException - Throws:
WorldEditException
-
deform
public int deform(Actor actor, LocalSession session, EditSession editSession, Region region, @Arg(desc="The expression to use",variable=true) List<String> expression, @Switch(name='r',desc="Use the game\'s coordinate origin") boolean useRawCoords, @Switch(name='o',desc="Use the placement\'s coordinate origin") boolean offset, @Switch(name='c',desc="Use the selection\'s center as origin") boolean offsetCenter) throws WorldEditException - Throws:
WorldEditException
-
hollow
public int hollow(Actor actor, EditSession editSession, Region region, @Arg(desc="Thickness of the shell to leave",def="0") int thickness, @Arg(desc="The pattern of blocks to replace the hollowed area with",def="air") Pattern pattern) throws WorldEditException - Throws:
WorldEditException
-
forest
public int forest(Actor actor, EditSession editSession, Region region, @Arg(desc="The type of tree to place",def="tree") TreeGenerator.TreeType type, @Arg(desc="The density of the forest",def="5") double density) throws WorldEditException - Throws:
WorldEditException
-
flora
public int flora(Actor actor, EditSession editSession, Region region, @Arg(desc="The density of the forest",def="5") double density) throws WorldEditException - Throws:
WorldEditException
-