Package com.sk89q.worldedit.command
Class GeneralCommands
java.lang.Object
com.sk89q.worldedit.command.GeneralCommands
General WorldEdit commands.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
drawSelection
(Player player, LocalSession session, Boolean drawSelection) void
gmask
(Actor actor, LocalSession session, Mask mask) void
gsmask
(Actor actor, LocalSession session, EditSession editSession, Mask maskOpt) void
gtexture
(Actor actor, World worldArg, LocalSession session, EditSession editSession, List<String> arguments) void
gtransform
(Actor actor, EditSession editSession, LocalSession session, ResettableExtent transform) void
limit
(Actor actor, LocalSession session, Integer limit) static void
register
(CommandRegistrationHandler registration, org.enginehub.piston.CommandManager commandManager, org.enginehub.piston.CommandManagerService commandManagerService, WorldEdit worldEdit) void
reorderMode
(Actor actor, LocalSession session, EditSession.ReorderMode reorderMode) void
searchItem
(Actor actor, boolean blocksOnly, boolean itemsOnly, int page, List<String> query) void
timeout
(Actor actor, LocalSession session, Integer limit) void
tips
(Actor actor, LocalSession session) void
togglePlace
(Actor actor, LocalSession session) void
watchdog
(Actor actor, LocalSession session, HookMode hookMode) void
world
(Actor actor, LocalSession session, World world)
-
Constructor Details
-
GeneralCommands
Create a new instance.- Parameters:
worldEdit
- reference to WorldEdit
-
-
Method Details
-
register
public static void register(CommandRegistrationHandler registration, org.enginehub.piston.CommandManager commandManager, org.enginehub.piston.CommandManagerService commandManagerService, WorldEdit worldEdit) -
limit
public void limit(Actor actor, LocalSession session, @Arg(desc="The limit to set",def="") Integer limit) -
timeout
public void timeout(Actor actor, LocalSession session, @Arg(desc="The timeout time to set",def="") Integer limit) -
reorderMode
public void reorderMode(Actor actor, LocalSession session, @Arg(desc="The reorder mode",def="") EditSession.ReorderMode reorderMode) -
drawSelection
public void drawSelection(Player player, LocalSession session, @Arg(desc="The new draw selection state",def="") Boolean drawSelection) throws WorldEditException - Throws:
WorldEditException
-
world
public void world(Actor actor, LocalSession session, @Arg(desc="The world override",def="") World world) -
watchdog
public void watchdog(Actor actor, LocalSession session, @Arg(desc="The mode to set the watchdog hook to",def="") HookMode hookMode) -
gmask
-
togglePlace
-
searchItem
-
gtexture
public void gtexture(Actor actor, World worldArg, LocalSession session, EditSession editSession, @Arg(name="context",desc="InjectedValueAccess",def="") List<String> arguments) throws WorldEditException, FileNotFoundException -
gsmask
public void gsmask(Actor actor, LocalSession session, EditSession editSession, @Arg(desc="The mask to set",def="") Mask maskOpt) throws WorldEditException - Throws:
WorldEditException
-
gtransform
public void gtransform(Actor actor, EditSession editSession, LocalSession session, @Arg(desc="The transform to set",def="") ResettableExtent transform) throws WorldEditException - Throws:
WorldEditException
-
tips
- Throws:
WorldEditException
-