Interface SuggestionProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
FunctionalInterface that generates suggestions for a Parser.
See the addSuggestions(CommandContext, SuggestionsBuilder) method.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSuggestions(com.mojang.brigadier.context.CommandContext<?> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) Adds suggestions to the givenSuggestionsBuilder.
-
Method Details
-
addSuggestions
void addSuggestions(com.mojang.brigadier.context.CommandContext<?> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) Adds suggestions to the givenSuggestionsBuilder.- Parameters:
context- TheCommandContextthat holds information about the command that needs suggestions.builder- TheSuggestionsBuilderto add suggestions to.
-