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 TypeMethodDescriptionvoid
addChild
(co.aikar.commands.BaseCommand command) List<co.aikar.commands.BaseCommand>
co.aikar.commands.BaseCommand
Optional<org.spongepowered.api.text.Text>
getHelp
(@NotNull org.spongepowered.api.command.CommandSource source) co.aikar.commands.CommandManager
Optional<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.Text
getUsage
(@NotNull org.spongepowered.api.command.CommandSource source) org.spongepowered.api.command.CommandResult
boolean
testPermission
(@NotNull org.spongepowered.api.command.CommandSource source) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.aikar.commands.RootCommand
addChildShared, execute, getDefaultRegisteredCommand, getDescription, getTabCompletions, getTabCompletions, getTabCompletions, getUniquePermission, getUsage, hasAnyPermission
-
Method Details
-
getCommandName
- Specified by:
getCommandName
in 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:
process
in 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:
getSuggestions
in interfaceorg.spongepowered.api.command.CommandCallable
- Throws:
org.spongepowered.api.command.CommandException
-
testPermission
- Specified by:
testPermission
in interfaceorg.spongepowered.api.command.CommandCallable
-
getShortDescription
public Optional<org.spongepowered.api.text.Text> getShortDescription(@NotNull @NotNull org.spongepowered.api.command.CommandSource source) - Specified by:
getShortDescription
in interfaceorg.spongepowered.api.command.CommandCallable
-
getHelp
public Optional<org.spongepowered.api.text.Text> getHelp(@NotNull @NotNull org.spongepowered.api.command.CommandSource source) - Specified by:
getHelp
in interfaceorg.spongepowered.api.command.CommandCallable
-
getUsage
public org.spongepowered.api.text.Text getUsage(@NotNull @NotNull org.spongepowered.api.command.CommandSource source) - Specified by:
getUsage
in interfaceorg.spongepowered.api.command.CommandCallable
-
addChild
- Specified by:
addChild
in interfaceco.aikar.commands.RootCommand
-
getDefCommand
- Specified by:
getDefCommand
in interfaceco.aikar.commands.RootCommand
-
getManager
- Specified by:
getManager
in interfaceco.aikar.commands.RootCommand
-
getSubCommands
public com.google.common.collect.SetMultimap<String,co.aikar.commands.RegisteredCommand> getSubCommands()- Specified by:
getSubCommands
in interfaceco.aikar.commands.RootCommand
-
getChildren
- Specified by:
getChildren
in interfaceco.aikar.commands.RootCommand
-