Interface BrigadierMappingBuilder.SuggestionProviderSupplier<K extends ArgumentParser<?,?>,S>

Enclosing interface:
BrigadierMappingBuilder<K extends ArgumentParser<?,?>,S>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface BrigadierMappingBuilder.SuggestionProviderSupplier<K extends ArgumentParser<?,?>,S>
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable com.mojang.brigadier.suggestion.SuggestionProvider<? super S>
    provide(@NonNull K argument, com.mojang.brigadier.suggestion.SuggestionProvider<S> useCloud)
    Create a new suggestion provider based on the provided argument.
  • Method Details

    • provide

      @Nullable com.mojang.brigadier.suggestion.SuggestionProvider<? super S> provide(@NonNull K argument, com.mojang.brigadier.suggestion.SuggestionProvider<S> useCloud)
      Create a new suggestion provider based on the provided argument.
      Parameters:
      argument - Argument to create a specialized provider for
      useCloud - A provider that can be returned to ask the server to use cloud suggestions
      Returns:
      A new provider, or null to use the default value for the mapped argument type
      Since:
      1.5.0