Package baritone.api.command
Interface ICommand
- All Superinterfaces:
Helper
- All Known Implementing Classes:
Command
The base for a command.
- Since:
- 10/7/2019
- Author:
- Brady
-
Field Summary
Fields inherited from interface baritone.api.utils.Helper
HELPER, mc, MESSAGE_TAG -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(String label, IArgConsumer args) Called when this command is executed.getNames()default booleantabComplete(String label, IArgConsumer args) Called when the command needs to tab complete.Methods inherited from interface baritone.api.utils.Helper
logDebug, logDirect, logDirect, logDirect, logDirect, logDirect, logDirect, logNotification, logNotification, logNotificationDirect, logNotificationDirect, logToast, logToast, logToast, logUnhandledException
-
Method Details
-
execute
Called when this command is executed.- Throws:
CommandException
-
tabComplete
Called when the command needs to tab complete. Return a Stream representing the entries to put in the completions list.- Throws:
CommandException
-
getShortDesc
- Returns:
- A single-line string containing a short description of this command's purpose.
-
getLongDesc
- Returns:
- A list of lines that will be printed by the help command when the user wishes to view them.
-
getNames
- Returns:
- A list of the names that can be accepted to have arguments passed to this command
-