public static class SuggestionProviders.LocalProvider extends Object implements com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>
Modifier and Type | Field and Description |
---|---|
private Identifier |
name |
private com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> |
provider |
Constructor and Description |
---|
LocalProvider(Identifier name,
com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> suggestionProvider) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
getSuggestions(com.mojang.brigadier.context.CommandContext<CommandSource> commandContext,
com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder) |
private final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> provider
private final Identifier name
public LocalProvider(Identifier name, com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> suggestionProvider)
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getSuggestions(com.mojang.brigadier.context.CommandContext<CommandSource> commandContext, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder)
getSuggestions
in interface com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>