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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(co.aikar.commands.BaseCommand command)List<co.aikar.commands.BaseCommand>getChildren()StringgetCommandName()co.aikar.commands.BaseCommandgetDefCommand()Optional<org.spongepowered.api.text.Text>getHelp(@NotNull org.spongepowered.api.command.CommandSource source)co.aikar.commands.CommandManagergetManager()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)org.spongepowered.api.text.TextgetUsage(@NotNull org.spongepowered.api.command.CommandSource source)org.spongepowered.api.command.CommandResultprocess(@NotNull org.spongepowered.api.command.CommandSource source, @NotNull String arguments)booleantestPermission(@NotNull org.spongepowered.api.command.CommandSource source)
-
-
-
Method Detail
-
getCommandName
public String 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
public boolean testPermission(@NotNull @NotNull org.spongepowered.api.command.CommandSource source)
- 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
public void addChild(co.aikar.commands.BaseCommand command)
- Specified by:
addChildin interfaceco.aikar.commands.RootCommand
-
getDefCommand
public co.aikar.commands.BaseCommand getDefCommand()
- Specified by:
getDefCommandin interfaceco.aikar.commands.RootCommand
-
getManager
public co.aikar.commands.CommandManager 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
public List<co.aikar.commands.BaseCommand> getChildren()
- Specified by:
getChildrenin interfaceco.aikar.commands.RootCommand
-
-