public abstract class Command extends java.lang.Object implements ICommand
ICommand
which provides easy access to the
command's bound IBaritone
instance, IPlayerContext
and an easy
way to provide multiple valid command execution names through the default constructor.
So basically, you should use it because it provides a small amount of boilerplate, but you're not forced to use it.
ICommand
Modifier and Type | Field and Description |
---|---|
protected IBaritone |
baritone |
protected IPlayerContext |
ctx |
protected java.util.List<java.lang.String> |
names
The names of this command.
|
Modifier | Constructor and Description |
---|---|
protected |
Command(IBaritone baritone,
java.lang.String... names)
Creates a new Baritone control command.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getNames() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getLongDesc, getShortDesc, hiddenFromHelp, tabComplete
getPrefix, logDebug, logDirect, logDirect, logDirect, logDirect, logDirect, logDirect, logNotification, logNotification, logNotificationDirect, logNotificationDirect, logToast, logToast, logToast
protected IPlayerContext ctx
protected final java.util.List<java.lang.String> names