Class CloudDelegatingSuggestionProvider<C,S>
java.lang.Object
org.incendo.cloud.brigadier.suggestion.CloudDelegatingSuggestionProvider<C,S>
- Type Parameters:
C- the Cloud command sender typeS- the Brigadier command sender type
- All Implemented Interfaces:
com.mojang.brigadier.suggestion.SuggestionProvider<S>
@API(status=INTERNAL,
since="2.0.0")
public final class CloudDelegatingSuggestionProvider<C,S>
extends Object
implements com.mojang.brigadier.suggestion.SuggestionProvider<S>
Brigadier suggestion provider that delegates to Cloud's suggestion provider.
- Since:
- 2.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCloudDelegatingSuggestionProvider(@NonNull BrigadierSuggestionFactory<C, S> suggestionFactory, @NonNull org.incendo.cloud.internal.CommandNode<C> node) Creates a new suggestion provider. -
Method Summary
Modifier and TypeMethodDescription@NonNull CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>getSuggestions(@NonNull com.mojang.brigadier.context.CommandContext<S> context, @NonNull com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
-
Constructor Details
-
CloudDelegatingSuggestionProvider
public CloudDelegatingSuggestionProvider(@NonNull BrigadierSuggestionFactory<C, S> suggestionFactory, @NonNull org.incendo.cloud.internal.CommandNode<C> node) Creates a new suggestion provider.- Parameters:
suggestionFactory- the factory that produces suggestionsnode- the node to generate suggestions for
-
-
Method Details
-
getSuggestions
public @NonNull CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getSuggestions(@NonNull com.mojang.brigadier.context.CommandContext<S> context, @NonNull com.mojang.brigadier.suggestion.SuggestionsBuilder builder) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getSuggestionsin interfacecom.mojang.brigadier.suggestion.SuggestionProvider<C>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-