public class ImmutableCommandContext<T extends org.bukkit.command.CommandSender> extends Object implements CommandContext<T>
| Constructor and Description |
|---|
ImmutableCommandContext(T sender,
String label,
String[] args,
List<String> aliases) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<String> |
aliases()
Gets the aliases of the command.
|
Argument |
arg(int index)
Gets the argument at a the given index
|
com.google.common.collect.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 org.bukkit.command.CommandSender>@Nonnull public com.google.common.collect.ImmutableList<String> args()
CommandContextargs in interface CommandContext<T extends org.bukkit.command.CommandSender>@Nonnull public Argument arg(int index)
CommandContextarg in interface CommandContext<T extends org.bukkit.command.CommandSender>index - the index@Nullable public String rawArg(int index)
CommandContextrawArg in interface CommandContext<T extends org.bukkit.command.CommandSender>index - the index@Nonnull public String label()
CommandContextlabel in interface CommandContext<T extends org.bukkit.command.CommandSender>@Nonnull public com.google.common.collect.ImmutableList<String> aliases()
CommandContextaliases in interface CommandContext<T extends org.bukkit.command.CommandSender>Copyright © 2022. All rights reserved.