Interface CommandArgumentSpec<T,V>
- All Known Implementing Classes:
CommandArgumentSpecImpl
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,V> CommandArgumentSpecBuilder <T, V> builder(String id, ArgumentType<T, V> type) @Nullable Function<CommandContext<T>, V> id()parseInput(String rawInput) @NotNull SuggestionProvider<T> type()
-
Method Details
-
builder
-
id
String id() -
type
ArgumentType<T,V> type() -
parseInput
- Throws:
IllegalArgumentException- if string invalid or if a requirement is not met
-
defaultValueProvider
-
suggestionProvider
- Returns:
- the explicitly set SuggestionProvider or the default suggestions for the type if unset/null
-