public class SpongeRootCommand extends Object implements org.spongepowered.api.command.CommandCallable
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(co.aikar.commands.BaseCommand command) |
default void |
addChildShared(List<co.aikar.commands.BaseCommand> arg0,
com.google.common.collect.SetMultimap<String,co.aikar.commands.RegisteredCommand> arg1,
co.aikar.commands.BaseCommand arg2) |
default co.aikar.commands.BaseCommand |
execute(co.aikar.commands.CommandIssuer arg0,
String arg1,
String[] arg2) |
default co.aikar.commands.BaseCommand |
getBaseCommand(String[] arg0) |
List<co.aikar.commands.BaseCommand> |
getChildren() |
String |
getCommandName() |
default co.aikar.commands.RegisteredCommand |
getDefaultRegisteredCommand() |
co.aikar.commands.BaseCommand |
getDefCommand() |
default String |
getDescription() |
Optional<org.spongepowered.api.text.Text> |
getHelp(@NotNull org.spongepowered.api.command.CommandSource source) |
co.aikar.commands.CommandManager |
getManager() |
Optional<org.spongepowered.api.text.Text> |
getShortDescription(@NotNull org.spongepowered.api.command.CommandSource source) |
com.google.common.collect.SetMultimap<String,co.aikar.commands.RegisteredCommand> |
getSubCommands() |
List<String> |
getSuggestions(@NotNull org.spongepowered.api.command.CommandSource source,
@NotNull String arguments,
org.spongepowered.api.world.Location<org.spongepowered.api.world.World> location) |
default List<String> |
getTabCompletions(co.aikar.commands.CommandIssuer arg0,
String arg1,
String[] arg2) |
default List<String> |
getTabCompletions(co.aikar.commands.CommandIssuer arg0,
String arg1,
String[] arg2,
boolean arg3) |
default String |
getUsage() |
org.spongepowered.api.text.Text |
getUsage(@NotNull org.spongepowered.api.command.CommandSource source) |
org.spongepowered.api.command.CommandResult |
process(@NotNull org.spongepowered.api.command.CommandSource source,
@NotNull String arguments) |
boolean |
testPermission(@NotNull org.spongepowered.api.command.CommandSource source) |
public String getCommandName()
public org.spongepowered.api.command.CommandResult process(@NotNull @NotNull org.spongepowered.api.command.CommandSource source, @NotNull @NotNull String arguments) throws org.spongepowered.api.command.CommandException
process in interface org.spongepowered.api.command.CommandCallableorg.spongepowered.api.command.CommandExceptionpublic List<String> getSuggestions(@NotNull @NotNull org.spongepowered.api.command.CommandSource source, @NotNull @NotNull String arguments, @Nullable org.spongepowered.api.world.Location<org.spongepowered.api.world.World> location) throws org.spongepowered.api.command.CommandException
getSuggestions in interface org.spongepowered.api.command.CommandCallableorg.spongepowered.api.command.CommandExceptionpublic boolean testPermission(@NotNull @NotNull org.spongepowered.api.command.CommandSource source)
testPermission in interface org.spongepowered.api.command.CommandCallablepublic Optional<org.spongepowered.api.text.Text> getShortDescription(@NotNull @NotNull org.spongepowered.api.command.CommandSource source)
getShortDescription in interface org.spongepowered.api.command.CommandCallablepublic Optional<org.spongepowered.api.text.Text> getHelp(@NotNull @NotNull org.spongepowered.api.command.CommandSource source)
getHelp in interface org.spongepowered.api.command.CommandCallablepublic org.spongepowered.api.text.Text getUsage(@NotNull @NotNull org.spongepowered.api.command.CommandSource source)
getUsage in interface org.spongepowered.api.command.CommandCallablepublic void addChild(co.aikar.commands.BaseCommand command)
public co.aikar.commands.BaseCommand getDefCommand()
public co.aikar.commands.CommandManager getManager()
public com.google.common.collect.SetMultimap<String,co.aikar.commands.RegisteredCommand> getSubCommands()
public List<co.aikar.commands.BaseCommand> getChildren()
public void addChildShared(List<co.aikar.commands.BaseCommand> arg0, com.google.common.collect.SetMultimap<String,co.aikar.commands.RegisteredCommand> arg1, co.aikar.commands.BaseCommand arg2)
public co.aikar.commands.BaseCommand execute(co.aikar.commands.CommandIssuer arg0, String arg1, String[] arg2)
public co.aikar.commands.BaseCommand getBaseCommand(String[] arg0)
public List<String> getTabCompletions(co.aikar.commands.CommandIssuer arg0, String arg1, String[] arg2)
public List<String> getTabCompletions(co.aikar.commands.CommandIssuer arg0, String arg1, String[] arg2, boolean arg3)
public co.aikar.commands.RegisteredCommand getDefaultRegisteredCommand()
public String getDescription()
Copyright © 2018. All rights reserved.