public class SpongeRootCommand extends Object implements org.spongepowered.api.command.CommandCallable, RootCommand
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(BaseCommand command) |
List<BaseCommand> |
getChildren() |
String |
getCommandName() |
BaseCommand |
getDefCommand() |
Optional<org.spongepowered.api.text.Text> |
getHelp(@NotNull org.spongepowered.api.command.CommandSource source) |
CommandManager |
getManager() |
Optional<org.spongepowered.api.text.Text> |
getShortDescription(@NotNull org.spongepowered.api.command.CommandSource source) |
com.google.common.collect.SetMultimap<String,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) |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChildShared, execute, getDefaultRegisteredCommand, getDescription, getTabCompletions, getTabCompletions, getTabCompletions, getUniquePermission, getUsage, hasAnyPermissionpublic String getCommandName()
getCommandName in interface RootCommandpublic 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(BaseCommand command)
addChild in interface RootCommandpublic BaseCommand getDefCommand()
getDefCommand in interface RootCommandpublic CommandManager getManager()
getManager in interface RootCommandpublic com.google.common.collect.SetMultimap<String,RegisteredCommand> getSubCommands()
getSubCommands in interface RootCommandpublic List<BaseCommand> getChildren()
getChildren in interface RootCommandCopyright © 2015–2021 Global Minecraft Ban Manager. All rights reserved.