Interface CommandContext<T>
- All Known Implementing Classes:
CommandContextImpl
public interface CommandContext<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> VgetArg(CommandArgumentSpec<T, V> arg) default <V> Vdefault <V> CommandArgument<T, V> getParsedArgument(CommandArgumentSpec<T, V> arg) <V> CommandArgument<T, V> Map<String, CommandArgument<T, ?>> sender()
-
Method Details
-
sender
T sender() -
getParsedArgument
-
getArg
- Type Parameters:
V- the type of the value of the argument with the specified id- Returns:
- the value of the argument with the specified id
-
getArg
- Type Parameters:
V- the type of the value of the argument- Parameters:
arg- the argument whose value to return- Returns:
- the value of the argument
-
getParsedArgument
-
parsedArguments
Map<String, CommandArgument<T,?>> parsedArguments()
-