public class GenerationCommands
extends java.lang.Object
Constructor and Description |
---|
GenerationCommands(WorldEdit worldEdit)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
cyl(Actor actor,
LocalSession session,
EditSession editSession,
Pattern pattern,
java.util.List<java.lang.Double> radii,
int height,
boolean hollow) |
int |
forestGen(Actor actor,
LocalSession session,
EditSession editSession,
int size,
TreeGenerator.TreeType type,
double density) |
int |
generate(Actor actor,
LocalSession session,
EditSession editSession,
Region region,
Pattern pattern,
java.util.List<java.lang.String> expression,
boolean hollow,
boolean useRawCoords,
boolean offset,
boolean offsetCenter) |
int |
generateBiome(Actor actor,
LocalSession session,
EditSession editSession,
Region region,
BiomeType target,
java.util.List<java.lang.String> expression,
boolean hollow,
boolean useRawCoords,
boolean offset,
boolean offsetCenter) |
int |
hcyl(Actor actor,
LocalSession session,
EditSession editSession,
Pattern pattern,
java.util.List<java.lang.Double> radii,
int height) |
int |
hollowPyramid(Actor actor,
LocalSession session,
EditSession editSession,
Pattern pattern,
int size) |
int |
hsphere(Actor actor,
LocalSession session,
EditSession editSession,
Pattern pattern,
java.util.List<java.lang.Double> radii,
boolean raised) |
int |
pumpkins(Actor actor,
LocalSession session,
EditSession editSession,
int size) |
int |
pyramid(Actor actor,
LocalSession session,
EditSession editSession,
Pattern pattern,
int size,
boolean hollow) |
int |
sphere(Actor actor,
LocalSession session,
EditSession editSession,
Pattern pattern,
java.util.List<java.lang.Double> radii,
boolean raised,
boolean hollow) |
public GenerationCommands(WorldEdit worldEdit)
worldEdit
- reference to WorldEditpublic int hcyl(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The pattern of blocks to generate") Pattern pattern, @Arg(desc="The radii of the cylinder. 1st is N/S, 2nd is E/W") java.util.List<java.lang.Double> radii, @Arg(desc="The height of the cylinder",def="1") int height) throws WorldEditException
WorldEditException
public int cyl(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The pattern of blocks to generate") Pattern pattern, @Arg(desc="The radii of the cylinder. 1st is N/S, 2nd is E/W") java.util.List<java.lang.Double> radii, @Arg(desc="The height of the cylinder",def="1") int height, @Switch(name=104,desc="Make a hollow cylinder") boolean hollow) throws WorldEditException
WorldEditException
public int hsphere(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The pattern of blocks to generate") Pattern pattern, @Arg(desc="The radii of the sphere. Order is N/S, U/D, E/W") java.util.List<java.lang.Double> radii, @Switch(name=114,desc="Raise the bottom of the sphere to the placement position") boolean raised) throws WorldEditException
WorldEditException
public int sphere(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The pattern of blocks to generate") Pattern pattern, @Arg(desc="The radii of the sphere. Order is N/S, U/D, E/W") java.util.List<java.lang.Double> radii, @Switch(name=114,desc="Raise the bottom of the sphere to the placement position") boolean raised, @Switch(name=104,desc="Make a hollow sphere") boolean hollow) throws WorldEditException
WorldEditException
public int forestGen(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The size of the forest, in blocks",def="10") int size, @Arg(desc="The type of forest",def="tree") TreeGenerator.TreeType type, @Arg(desc="The density of the forest, between 0 and 100",def="5") double density) throws WorldEditException
WorldEditException
public int pumpkins(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The size of the patch",def="10") int size) throws WorldEditException
WorldEditException
public int hollowPyramid(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The pattern of blocks to set") Pattern pattern, @Arg(desc="The size of the pyramid") int size) throws WorldEditException
WorldEditException
public int pyramid(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The pattern of blocks to set") Pattern pattern, @Arg(desc="The size of the pyramid") int size, @Switch(name=104,desc="Make a hollow pyramid") boolean hollow) throws WorldEditException
WorldEditException
public int generate(Actor actor, LocalSession session, EditSession editSession, Region region, @Arg(desc="The pattern of blocks to set") Pattern pattern, @Arg(desc="Expression to test block placement locations and set block type",variable=true) java.util.List<java.lang.String> expression, @Switch(name=104,desc="Generate a hollow shape") boolean hollow, @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 generateBiome(Actor actor, LocalSession session, EditSession editSession, Region region, @Arg(desc="The biome type to set") BiomeType target, @Arg(desc="Expression to test block placement locations and set biome type",variable=true) java.util.List<java.lang.String> expression, @Switch(name=104,desc="Generate a hollow shape") boolean hollow, @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