public class ImmutableCommandContext<T extends CommandSender> extends Object implements CommandContext<T>
| Constructor and Description |
|---|
ImmutableCommandContext(T sender,
String label,
String[] args) |
| Modifier and Type | Method and Description |
|---|---|
Argument |
arg(int index)
Gets the argument at a the given index
|
ImmutableList<String> |
args()
Gets an immutable list of the supplied arguments
|
String |
label()
Gets the command label which was used to execute this command
|
String |
rawArg(int index)
Gets the argument at the given index.
|
T |
sender()
Gets the sender who executed the command
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreply@Nonnull public T sender()
CommandContextsender in interface CommandContext<T extends CommandSender>@Nonnull public ImmutableList<String> args()
CommandContextargs in interface CommandContext<T extends CommandSender>@Nonnull public Argument arg(int index)
CommandContextarg in interface CommandContext<T extends CommandSender>index - the index@Nullable public String rawArg(int index)
CommandContextrawArg in interface CommandContext<T extends CommandSender>index - the index@Nonnull public String label()
CommandContextlabel in interface CommandContext<T extends CommandSender>Copyright © 2020. All rights reserved.