Interface ArgumentType<C extends CommandContext<C>, V>
- Type Parameters:
C- argument of command contextV- argument of parsed argument value
- All Known Implementing Classes:
BooleanArgumentType, DoubleArgumentType, IntegerArgumentType, StringArgumentType
public interface ArgumentType<C extends CommandContext<C>, V>
-
Method Summary
-
Method Details
-
parseInput
-
defaultSuggestionProvider
SuggestionProvider<C> defaultSuggestionProvider()- Returns:
- default suggestion provider for the argument, if not overwritten by the argument
-
greedy
default boolean greedy()- Returns:
- whether this argument is greedy. Greedy arguments consume all remaining input instead of a single word. For example, given the 2 words "hello" "world" as input, a greedy argument parses "hello world" as a single value. Greedy arguments may not be followed by another argument or a literal
-