Package co.aikar.commands
Class SpongeRootCommand
java.lang.Object
co.aikar.commands.SpongeRootCommand
- All Implemented Interfaces:
co.aikar.commands.RootCommand,org.spongepowered.api.command.CommandCallable
public class SpongeRootCommand
extends Object
implements org.spongepowered.api.command.CommandCallable, co.aikar.commands.RootCommand
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(co.aikar.commands.BaseCommand command) List<co.aikar.commands.BaseCommand>co.aikar.commands.BaseCommandOptional<org.spongepowered.api.text.Text>getHelp(@NotNull org.spongepowered.api.command.CommandSource source) co.aikar.commands.CommandManagerOptional<org.spongepowered.api.text.Text>getShortDescription(@NotNull org.spongepowered.api.command.CommandSource source) com.google.common.collect.SetMultimap<String,co.aikar.commands.RegisteredCommand> 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.TextgetUsage(@NotNull org.spongepowered.api.command.CommandSource source) org.spongepowered.api.command.CommandResultbooleantestPermission(@NotNull org.spongepowered.api.command.CommandSource source) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.aikar.commands.RootCommand
addChildShared, execute, getDefaultRegisteredCommand, getDescription, getTabCompletions, getTabCompletions, getTabCompletions, getUniquePermission, getUsage, hasAnyPermission
-
Method Details
-
getCommandName
- Specified by:
getCommandNamein interfaceco.aikar.commands.RootCommand
-
process
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 - Specified by:
processin interfaceorg.spongepowered.api.command.CommandCallable- Throws:
org.spongepowered.api.command.CommandException
-
getSuggestions
public 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 - Specified by:
getSuggestionsin interfaceorg.spongepowered.api.command.CommandCallable- Throws:
org.spongepowered.api.command.CommandException
-
testPermission
- Specified by:
testPermissionin interfaceorg.spongepowered.api.command.CommandCallable
-
getShortDescription
public Optional<org.spongepowered.api.text.Text> getShortDescription(@NotNull @NotNull org.spongepowered.api.command.CommandSource source) - Specified by:
getShortDescriptionin interfaceorg.spongepowered.api.command.CommandCallable
-
getHelp
public Optional<org.spongepowered.api.text.Text> getHelp(@NotNull @NotNull org.spongepowered.api.command.CommandSource source) - Specified by:
getHelpin interfaceorg.spongepowered.api.command.CommandCallable
-
getUsage
public org.spongepowered.api.text.Text getUsage(@NotNull @NotNull org.spongepowered.api.command.CommandSource source) - Specified by:
getUsagein interfaceorg.spongepowered.api.command.CommandCallable
-
addChild
- Specified by:
addChildin interfaceco.aikar.commands.RootCommand
-
getDefCommand
- Specified by:
getDefCommandin interfaceco.aikar.commands.RootCommand
-
getManager
- Specified by:
getManagerin interfaceco.aikar.commands.RootCommand
-
getSubCommands
public com.google.common.collect.SetMultimap<String,co.aikar.commands.RegisteredCommand> getSubCommands()- Specified by:
getSubCommandsin interfaceco.aikar.commands.RootCommand
-
getChildren
- Specified by:
getChildrenin interfaceco.aikar.commands.RootCommand
-