Interface BrigadierMappingBuilder.SuggestionProviderSupplier<K extends org.incendo.cloud.parser.ArgumentParser<?,?>,S>
- Enclosing interface:
- BrigadierMappingBuilder<K extends org.incendo.cloud.parser.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 org.incendo.cloud.parser.ArgumentParser<?,?>,S>
-
Method Summary
-
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 foruseCloud- A provider that can be returned to ask the server to use cloud suggestions- Returns:
- A new provider, or
nullto use the default value for the mapped argument type - Since:
- 1.5.0
-