Interface CommandContext<T,S extends CommandContext<T,?>>
- All Known Implementing Classes:
CommandContextImpl
public interface CommandContext<T,S extends CommandContext<T,?>>
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> VgetArg(CommandArgument<T, S, V> arg) default <V> Vdefault <V> ParsedArgument<T, S, V> getParsedArgument(CommandArgument<T, S, V> arg) <V> ParsedArgument<T, S, V> getParsedArgument(String name)
-
Method Details
-
getSender
T getSender() -
getParsedArgument
- Returns:
- Object that is parsed from the raw argument
- Throws:
RuntimeException- if no value given and no default value supplied
-
getArg
-
getArg
-
getParsedArgument
-