Class GenerationCommands

java.lang.Object
com.sk89q.worldedit.command.GenerationCommands

public class GenerationCommands extends Object
Commands for the generation of shapes and other objects.
  • Constructor Details

    • GenerationCommands

      public GenerationCommands(WorldEdit worldEdit)
      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
    • 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
    • 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