Class BrigadierSuggestionFactory<C,S>

java.lang.Object
org.incendo.cloud.brigadier.suggestion.BrigadierSuggestionFactory<C,S>
Type Parameters:
C - command sender type
S - Brigadier sender type

@API(status=INTERNAL, since="2.0.0") public final class BrigadierSuggestionFactory<C,S> extends Object
Produces Brigadier suggestions by invoking the Cloud suggestion provider.
Since:
2.0.0
  • Constructor Details

  • Method Details

    • buildSuggestions

      public @NonNull CompletableFuture<@NonNull com.mojang.brigadier.suggestion.Suggestions> buildSuggestions(@Nullable com.mojang.brigadier.context.CommandContext<S> senderContext, @Nullable CommandNode<C> parentNode, @NonNull CommandComponent<C> component, @NonNull com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Builds suggestions for the given component.
      Parameters:
      senderContext - the brigadier context
      parentNode - the parent command node
      component - the command component to generate suggestions for
      builder - the suggestion builder to generate suggestions with
      Returns:
      future that completes with the suggestions