Package com.sk89q.worldedit.command
Class GenerationCommands
java.lang.Object
com.sk89q.worldedit.command.GenerationCommands
Commands for the generation of shapes and other objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
cone
(Actor actor, LocalSession session, EditSession editSession, Pattern pattern, List<Double> radii, int height, boolean hollow, double thickness) int
cyl
(Actor actor, LocalSession session, EditSession editSession, Pattern pattern, List<Double> radii, int height, boolean hollow) int
feature
(Actor actor, LocalSession session, EditSession editSession, ConfiguredFeatureType feature) 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, List<String> expression, boolean hollow, boolean useRawCoords, boolean offset, boolean offsetCenter) int
generateBiome
(Actor actor, LocalSession session, EditSession editSession, Region region, BiomeType target, List<String> expression, boolean hollow, boolean useRawCoords, boolean offset, boolean offsetCenter) int
hcyl
(Actor actor, LocalSession session, EditSession editSession, Pattern pattern, List<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, List<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, List<Double> radii, boolean raised, boolean hollow) int
structure
(Actor actor, LocalSession session, EditSession editSession, StructureType feature)
-
Constructor Details
-
GenerationCommands
Create a new instance.- Parameters:
worldEdit
- reference to WorldEdit
-
-
Method Details
-
hcyl
public 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") List<Double> radii, @Arg(desc="The height of the cylinder",def="1") int height) throws WorldEditException - Throws:
WorldEditException
-
cyl
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") List<Double> radii, @Arg(desc="The height of the cylinder",def="1") int height, @Switch(name='h',desc="Make a hollow cylinder") boolean hollow) throws WorldEditException - Throws:
WorldEditException
-
cone
public int cone(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The pattern of blocks to generate") Pattern pattern, @Arg(desc="The radii of the cone. 1st is N/S, 2nd is E/W") List<Double> radii, @Arg(desc="The height of the cone",def="1") int height, @Switch(name='h',desc="Make a hollow cone") boolean hollow, @Arg(desc="Thickness of the hollow cone",def="1") double thickness) throws WorldEditException - Throws:
WorldEditException
-
hsphere
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") List<Double> radii, @Switch(name='r',desc="Raise the bottom of the sphere to the placement position") boolean raised) throws WorldEditException - Throws:
WorldEditException
-
sphere
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") List<Double> radii, @Switch(name='r',desc="Raise the bottom of the sphere to the placement position") boolean raised, @Switch(name='h',desc="Make a hollow sphere") boolean hollow) throws WorldEditException - Throws:
WorldEditException
-
forestGen
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 - Throws:
WorldEditException
-
pumpkins
public int pumpkins(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The size of the patch",def="10") int size) throws WorldEditException - Throws:
WorldEditException
-
feature
public int feature(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The feature") ConfiguredFeatureType feature) throws WorldEditException - Throws:
WorldEditException
-
structure
public int structure(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The structure") StructureType feature) throws WorldEditException - Throws:
WorldEditException
-
hollowPyramid
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 - Throws:
WorldEditException
-
pyramid
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='h',desc="Make a hollow pyramid") boolean hollow) throws WorldEditException - Throws:
WorldEditException
-
generate
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) List<String> expression, @Switch(name='h',desc="Generate a hollow shape") boolean hollow, @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
-
generateBiome
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) List<String> expression, @Switch(name='h',desc="Generate a hollow shape") boolean hollow, @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
-