public class RegionCommands
extends java.lang.Object
Constructor and Description |
---|
RegionCommands()
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
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,
java.util.List<java.lang.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 |
replace(Actor actor,
EditSession editSession,
Region region,
Mask from,
Pattern to) |
int |
set(Actor actor,
EditSession editSession,
Region region,
Pattern pattern) |
int |
smooth(Actor actor,
EditSession editSession,
Region region,
int iterations,
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) |
public int set(Actor actor, EditSession editSession, Region region, @Arg(desc="The pattern of blocks to set") Pattern pattern)
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=104,desc="Generate only a shell") boolean shell) throws WorldEditException
WorldEditException
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=104,desc="Generate only a shell") boolean shell) throws WorldEditException
WorldEditException
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
WorldEditException
public int overlay(Actor actor, EditSession editSession, Region region, @Arg(desc="The pattern of blocks to overlay") Pattern pattern) throws WorldEditException
WorldEditException
public int center(Actor actor, EditSession editSession, Region region, @Arg(desc="The pattern of blocks to set") Pattern pattern) throws WorldEditException
WorldEditException
public int naturalize(Actor actor, EditSession editSession, Region region) throws WorldEditException
WorldEditException
public int walls(Actor actor, EditSession editSession, Region region, @Arg(desc="The pattern of blocks to set") Pattern pattern) throws WorldEditException
WorldEditException
public int faces(Actor actor, EditSession editSession, Region region, @Arg(desc="The pattern of blocks to set") Pattern pattern) throws WorldEditException
WorldEditException
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
WorldEditException
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=115,desc="Shift the selection to the target location") boolean moveSelection, @Switch(name=97,desc="Ignore air blocks") boolean ignoreAirBlocks, @Switch(name=101,desc="Also copy entities") boolean copyEntities, @Switch(name=98,desc="Also copy biomes") boolean copyBiomes, @ArgFlag(name=109,desc="Set the include mask, non-matching blocks become air") Mask mask) throws WorldEditException
WorldEditException
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=115,desc="Shift the selection to the last stacked copy") boolean moveSelection, @Switch(name=97,desc="Ignore air blocks") boolean ignoreAirBlocks, @Switch(name=101,desc="Also copy entities") boolean copyEntities, @Switch(name=98,desc="Also copy biomes") boolean copyBiomes, @Switch(name=114,desc="Use block units") boolean blockUnits, @ArgFlag(name=109,desc="Set the include mask, non-matching blocks become air") Mask mask) throws WorldEditException
WorldEditException
public int deform(Actor actor, LocalSession session, EditSession editSession, Region region, @Arg(desc="The expression to use",variable=true) java.util.List<java.lang.String> expression, @Switch(name=114,desc="Use the game\'s coordinate origin") boolean useRawCoords, @Switch(name=111,desc="Use the placement\'s coordinate origin") boolean offset, @Switch(name=99,desc="Use the selection\'s center as origin") boolean offsetCenter) throws WorldEditException
WorldEditException
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
WorldEditException
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
WorldEditException
public int flora(Actor actor, EditSession editSession, Region region, @Arg(desc="The density of the forest",def="5") double density) throws WorldEditException
WorldEditException