Interface CommandManager.Mutable
- 
- All Superinterfaces:
- CommandManager
 - Enclosing interface:
- CommandManager
 
 public static interface CommandManager.Mutable extends CommandManager A mutable view of the command manager, allowing additional commands to be registered.This view exists for access through CommandRegistrars. To register commands, see theRegisterCommandEvent.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.spongepowered.api.command.manager.CommandManagerCommandManager.Mutable
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandMappingregisterAlias(CommandRegistrar<?> registrar, org.spongepowered.plugin.PluginContainer container, CommandTreeNode.Root commandTree, java.lang.String primaryAlias, java.lang.String... secondaryAliases)Registers a set of command aliases with this manager.- 
Methods inherited from interface org.spongepowered.api.command.manager.CommandManagercommandMapping, complete, complete, complete, knownAliases, knownMappings, plugins, process, process, process, registrar, registrar, updateCommandTreeForPlayer
 
- 
 
- 
- 
- 
Method Detail- 
registerAliasCommandMapping registerAlias(CommandRegistrar<?> registrar, org.spongepowered.plugin.PluginContainer container, CommandTreeNode.Root commandTree, java.lang.String primaryAlias, java.lang.String... secondaryAliases) throws CommandFailedRegistrationException Registers a set of command aliases with this manager. This method should only be used by plugins that implement their own command framework, as described in the description of theCommandRegistrarclass.When registering a command, any aliases provided are prefixed with the plugin's ID, followed by a colon to provide command namespacing in addition to the unnamespaced aliases. As an example, if a plugin with ID footries to register the commandbar, the command manager will attempt to register the commands/barand/foo:bar.Command aliases may not contain whitespace. If you wish to inspect the aliases that were registered, you may inspect the returned CommandMappingfor the registered aliases.- Parameters:
- registrar- The- CommandRegistrarthat is requesting the aliases
- container- The- PluginContainerto register the command for
- commandTree- The- CommandTreeNodethat represents this command structure.
- primaryAlias- The first command alias to register
- secondaryAliases- Secondary aliases to register, if any
- Returns:
- The CommandMappingcontaining the command mapping information.
- Throws:
- CommandFailedRegistrationException- thrown if the command could not be registered.
 
 
- 
 
-