Class CommandArgumentSpecBuilder<T,V>
java.lang.Object
de.kentoj.kencommandapi.api.argument.CommandArgumentSpecBuilder<T,V>
- Type Parameters:
T- type of the command senderV- type of the value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withDefaultValue(@Nullable Function<CommandContext<T>, V> defaultValueProvider) withRequirement(Predicate<V> predicate, String message) withSuggestionProvider(@Nullable SuggestionProvider<T> suggestionProvider)
-
Constructor Details
-
CommandArgumentSpecBuilder
-
-
Method Details
-
withRequirement
-
withDefaultValue
public CommandArgumentSpecBuilder<T,V> withDefaultValue(@Nullable @Nullable Function<CommandContext<T>, V> defaultValueProvider) -
withSuggestionProvider
public CommandArgumentSpecBuilder<T,V> withSuggestionProvider(@Nullable @Nullable SuggestionProvider<T> suggestionProvider) -
build
-