public interface ICommandManager
Modifier and Type | Method and Description |
---|---|
int |
executeCommand(ICommandSender sender,
java.lang.String rawCommand)
Attempt to execute a command.
|
java.util.Map<java.lang.String,ICommand> |
getCommands()
Get a Map of all the name to command pairs stored in this command manager.
|
java.util.List<ICommand> |
getPossibleCommands(ICommandSender sender)
Get a list of commands that the given command sender has access to execute.
|
java.util.List<java.lang.String> |
getTabCompletions(ICommandSender sender,
java.lang.String input,
BlockPos pos)
Get a list of possible completion options for when the TAB key is pressed.
|
int executeCommand(ICommandSender sender, java.lang.String rawCommand)
sender
- The source of the command invocationrawCommand
- The raw string that was typedjava.util.List<java.lang.String> getTabCompletions(ICommandSender sender, java.lang.String input, BlockPos pos)
java.util.List<ICommand> getPossibleCommands(ICommandSender sender)
java.util.Map<java.lang.String,ICommand> getCommands()