Class ArgumentBuilder<C extends CommandContext<C>, V>
java.lang.Object
site.lab0x13.scrow.commands.model.argument.ArgumentBuilder<C,V>
- Type Parameters:
C- argument of command contextV- argument of argument value
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withDefaultValue(@Nullable DefaultValueProvider<C, V> defaultValue) withRequirement(ArgumentPredicate<C, V> predicate, String errorMessage) withSuggestionProvider(@Nullable SuggestionProvider<C> suggestionProvider)
-
Method Details
-
withRequirement
-
withDefaultValue
public ArgumentBuilder<C,V> withDefaultValue(@Nullable @Nullable DefaultValueProvider<C, V> defaultValue) -
withSuggestionProvider
public ArgumentBuilder<C,V> withSuggestionProvider(@Nullable @Nullable SuggestionProvider<C> suggestionProvider) - Parameters:
suggestionProvider- if null, use the argument's suggestion provider
-
build
-