Package com.sk89q.worldedit.command
Class UtilityCommands
java.lang.Object
com.sk89q.worldedit.command.UtilityCommands
Utility commands.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
int
butcher
(Actor actor, Integer radius, boolean killPets, boolean killNpcs, boolean killGolems, boolean killAnimals, boolean killAmbient, boolean killWithName, boolean killFriendly, boolean killArmorStands, boolean killWater) void
void
void
int
drain
(Actor actor, LocalSession session, EditSession editSession, Expression radiusExp, boolean waterlogged, boolean plants) static List
<com.sk89q.worldedit.util.formatting.text.Component> entryToComponent
(File root, List<Map.Entry<URI, String>> entries, Function<URI, Boolean> isLoaded, QuadFunction<String, String, UtilityCommands.URIType, Boolean, com.sk89q.worldedit.util.formatting.text.Component> adapter) int
extinguish
(Actor actor, LocalSession session, EditSession editSession, Integer radius) filesToEntry
(File root, List<File> files, UUID uuid) int
fill
(Actor actor, LocalSession session, EditSession editSession, Pattern pattern, Expression radiusExp, int depth, BlockVector3 direction) int
fillr
(Actor actor, LocalSession session, EditSession editSession, Pattern pattern, Expression radiusExp, Integer depth) int
fixLava
(Actor actor, LocalSession session, EditSession editSession, double radius) int
fixWater
(Actor actor, LocalSession session, EditSession editSession, double radius) getFiles
(File dir, Actor actor, List<String> args, String formatName, boolean playerFolder, boolean oldFirst, boolean newFirst) static void
getFiles
(File dir, Actor actor, List<String> args, String formatName, boolean playerFolder, Consumer<File> forEachFile) static String
int
green
(Actor actor, LocalSession session, EditSession editSession, double size, int height, boolean convertCoarse) void
heightmapInterface
(Actor actor, int min, int max) void
void
int
remove
(Actor actor, EntityRemover remover, int radius) int
removeAbove
(Actor actor, World world, LocalSession session, EditSession editSession, int size, Integer height) int
removeBelow
(Actor actor, World world, LocalSession session, EditSession editSession, int size, Integer height) int
removeNear
(Actor actor, LocalSession session, EditSession editSession, Mask mask, int radius) int
replaceNear
(Actor actor, World world, LocalSession session, EditSession editSession, int radius, Mask from, Pattern to) int
snow
(Actor actor, LocalSession session, EditSession editSession, double size, int height, boolean stack) int
thaw
(Actor actor, LocalSession session, EditSession editSession, double size, int height)
-
Constructor Details
-
UtilityCommands
-
-
Method Details
-
macro
-
heightmapInterface
public void heightmapInterface(Actor actor, @Arg(name="min",desc="int",def="100") int min, @Arg(name="max",desc="int",def="200") int max) throws IOException - Throws:
IOException
-
cancel
-
fill
public int fill(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The blocks to fill with") Pattern pattern, @Arg(desc="The radius to fill in") Expression radiusExp, @Arg(desc="The depth to fill",def="1") int depth, @Arg(desc="The direction to move",def="down") BlockVector3 direction) throws WorldEditException, EvaluationException -
fillr
public int fillr(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The blocks to fill with") Pattern pattern, @Arg(desc="The radius to fill in") Expression radiusExp, @Arg(desc="The depth to fill",def="") Integer depth) throws WorldEditException - Throws:
WorldEditException
-
drain
public int drain(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The radius to drain") Expression radiusExp, @Switch(name='w',desc="Also un-waterlog blocks") boolean waterlogged, @Switch(name='p',desc="Also remove water plants") boolean plants) throws WorldEditException - Throws:
WorldEditException
-
fixLava
public int fixLava(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The radius to fix in") double radius) throws WorldEditException - Throws:
WorldEditException
-
fixWater
public int fixWater(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The radius to fix in") double radius) throws WorldEditException - Throws:
WorldEditException
-
removeAbove
public int removeAbove(Actor actor, World world, LocalSession session, EditSession editSession, @Arg(desc="The apothem of the square to remove from",def="1") int size, @Arg(desc="The maximum height above you to remove from",def="") Integer height) throws WorldEditException - Throws:
WorldEditException
-
removeBelow
public int removeBelow(Actor actor, World world, LocalSession session, EditSession editSession, @Arg(desc="The apothem of the square to remove from",def="1") int size, @Arg(desc="The maximum height below you to remove from",def="") Integer height) throws WorldEditException - Throws:
WorldEditException
-
removeNear
public int removeNear(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The mask of blocks to remove") Mask mask, @Arg(desc="The radius of the square to remove from",def="50") int radius) throws WorldEditException - Throws:
WorldEditException
-
replaceNear
public int replaceNear(Actor actor, World world, LocalSession session, EditSession editSession, @Arg(desc="The radius of the square to remove in") int radius, @Arg(desc="The mask matching blocks to remove",def="") Mask from, @Arg(desc="The pattern of blocks to replace with") Pattern to) throws WorldEditException - Throws:
WorldEditException
-
snow
public int snow(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The radius of the cylinder to snow in",def="10") double size, @Arg(desc="The height of the cylinder to snow in",def="default-vertical-height") int height, @Switch(name='s',desc="Stack snow layers") boolean stack) throws WorldEditException - Throws:
WorldEditException
-
thaw
public int thaw(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The radius of the cylinder to thaw in",def="10") double size, @Arg(desc="The height of the cylinder to thaw in",def="default-vertical-height") int height) throws WorldEditException - Throws:
WorldEditException
-
green
public int green(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The radius of the cylinder to convert in",def="10") double size, @Arg(desc="The height of the cylinder to convert in",def="default-vertical-height") int height, @Switch(name='f',desc="Also convert coarse dirt") boolean convertCoarse) throws WorldEditException - Throws:
WorldEditException
-
extinguish
public int extinguish(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The radius of the square to remove in",def="") Integer radius) throws WorldEditException - Throws:
WorldEditException
-
butcher
public int butcher(Actor actor, @Arg(desc="Radius to kill mobs in",def="") Integer radius, @Switch(name='p',desc="Also kill pets") boolean killPets, @Switch(name='n',desc="Also kill NPCs") boolean killNpcs, @Switch(name='g',desc="Also kill golems") boolean killGolems, @Switch(name='a',desc="Also kill animals") boolean killAnimals, @Switch(name='b',desc="Also kill ambient mobs") boolean killAmbient, @Switch(name='t',desc="Also kill mobs with name tags") boolean killWithName, @Switch(name='f',desc="Also kill all friendly mobs (Applies the flags `-abgnpt`)") boolean killFriendly, @Switch(name='r',desc="Also destroy armor stands") boolean killArmorStands, @Switch(name='w',desc="Also kill water mobs") boolean killWater) throws WorldEditException - Throws:
WorldEditException
-
remove
public int remove(Actor actor, @Arg(desc="The type of entity to remove") EntityRemover remover, @Arg(desc="The radius of the cuboid to remove from") int radius) throws WorldEditException - Throws:
WorldEditException
-
calc
-
help
public void help(Actor actor, @Switch(name='s',desc="List sub-commands of the given command, if applicable") boolean listSubCommands, @ArgFlag(name='p',desc="The page to retrieve",def="1") int page, @Arg(desc="The command to retrieve help for",def="",variable=true) List<String> command) throws WorldEditException - Throws:
WorldEditException
-
confirm
- Throws:
WorldEditException
-
filesToEntry
-
entryToComponent
-
getFiles
-
getFiles
-
allFiles
-
getPath
-