Interface ArgumentType<T,V>
- All Known Implementing Classes:
IntegerArgumentType, StringArgumentType
public interface ArgumentType<T,V>
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleangreedy()parseInputUnchecked(String input) parses the given input and returns it.
-
Method Details
-
parseInputUnchecked
parses the given input and returns it. UnlikeCommandArgumentSpec.parseInput(String), this does not check any additional requirements.- Throws:
IllegalArgumentException- if string invalid- See Also:
-
getDefaultSuggestionProvider
SuggestionProvider<T> getDefaultSuggestionProvider()- See Also:
-
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
-