Package com.sk89q.worldedit.command
Class RegionCommands
java.lang.Object
com.sk89q.worldedit.command.RegionCommands
Commands that operate on regions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidair(Actor actor, EditSession editSession, Region region) intcenter(Actor actor, EditSession editSession, Region region, Pattern pattern) intcurve(Actor actor, EditSession editSession, Region region, Pattern pattern, double thickness, boolean shell) intdeform(Actor actor, LocalSession session, EditSession editSession, Region region, List<String> expression, boolean useRawCoords, boolean offset, boolean offsetCenter) intfaces(Actor actor, EditSession editSession, Region region, Pattern pattern) voidfall(Actor actor, EditSession editSession, Region region, BlockStateHolder replace, boolean notFullHeight) intfixblocks(Actor actor, EditSession editSession, Region region) voidfixLighting(Actor actor, LocalSession session, Region selection) intflora(Actor actor, EditSession editSession, Region region, double density) intforest(Actor actor, EditSession editSession, Region region, TreeGenerator.TreeType type, double density) inthollow(Actor actor, EditSession editSession, Region region, int thickness, Pattern pattern, Mask mask) voidlay(Actor actor, EditSession editSession, Region region, Pattern patternArg) intline(Actor actor, EditSession editSession, Region region, Pattern pattern, double thickness, boolean shell) intmove(Actor actor, World world, EditSession editSession, LocalSession session, Region region, int count, BlockVector3 direction, Pattern replace, boolean moveSelection, boolean ignoreAirBlocks, boolean copyEntities, boolean copyBiomes, Mask mask) intnaturalize(Actor actor, EditSession editSession, Region region) voidnbtinfo(Player player, EditSession editSession) intoverlay(Actor actor, EditSession editSession, Region region, Pattern pattern) voidremoveLighting(Actor actor, LocalSession session, Region selection) intintset(Actor actor, EditSession editSession, Region region, Pattern pattern) voidsetlighting(Actor actor, EditSession editSession, Region region) Deprecated, for removal: This API element is subject to removal in a future version.voidsetskylighting(Actor actor, Region region) Deprecated, for removal: This API element is subject to removal in a future version.intsmooth(Actor actor, EditSession editSession, Region region, int iterations, Mask mask) intsnowSmooth(Actor actor, EditSession editSession, Region region, int iterations, int snowBlockCount, Mask mask) intstack(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) voidtest(Actor actor, EditSession editSession, double testValue) intwalls(Actor actor, EditSession editSession, Region region, Pattern pattern) voidvoid
-
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) -
air
- Throws:
WorldEditException
-
test
public void test(Actor actor, EditSession editSession, @Arg(desc="test") double testValue) throws WorldEditException - Throws:
WorldEditException
-
fixLighting
public void fixLighting(Actor actor, LocalSession session, Region selection) throws WorldEditException - Throws:
WorldEditException
-
removeLighting
-
nbtinfo
-
setlighting
@Deprecated(since="2.4.2", forRemoval=true) public void setlighting(Actor actor, EditSession editSession, Region region) Deprecated, for removal: This API element is subject to removal in a future version. -
setskylighting
Deprecated, for removal: This API element is subject to removal in a future version. -
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") double 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") double 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
-
lay
public void lay(Actor actor, EditSession editSession, Region region, @Arg(name="pattern",desc="The pattern of blocks to lay") Pattern patternArg) 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
-
wea
- Throws:
WorldEditException
-
wer
- 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="# of blocks to move",def="1") int count, @Arg(desc="The direction to move",def="me") BlockVector3 direction, @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
-
fall
public void fall(Actor actor, EditSession editSession, Region region, @Arg(desc="BlockStateHolder",def="air") BlockStateHolder replace, @Switch(name='m',desc="Only fall within the vertical selection") boolean notFullHeight) 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, @ArgFlag(name='m',desc="Mask to hollow with") Mask mask) 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
-
fixblocks
-