suggestions

fun <S> suggestions(vararg strings: String): SuggestionProvider<S>
fun <S> suggestions(strings: Iterable<String>): SuggestionProvider<S>
fun <S> suggestions(strings: () -> Iterable<String>?): SuggestionProvider<S>

Appends all elements from strings as suggestion, filtered by the vanilla SharedSuggestionProvider matching (case-insensitive prefix / substring).


fun <S> suggestions(executor: Executor, strings: Supplier<Iterable<String>?>): SuggestionProvider<S>

Appends all elements from strings as suggestion. The supplier function is invoked on executor; the resulting future completes on the Minecraft main thread, mirroring vanilla where every suggestion future.