suggestion

fun suggestion(suggestions: List<String>): CommandCreator<T>

Adds static suggestions for this command argument.

Return

this CommandCreator instance for chaining

Parameters

suggestions

a list of strings to be suggested to the user


inline fun <E : Enum<E>> suggestion(): CommandCreator<T>

Adds static suggestions for this command argument from an Enum.

Return

this CommandCreator instance for chaining

Parameters

enumClass

the class of the enum to suggest values from


fun suggestion(provider: SuggestionProvider<CommandSourceStack>): CommandCreator<T>

Adds dynamic suggestions for this command argument.

Return

this CommandCreator instance for chaining

Parameters

provider

the Brigadier SuggestionProvider that generates suggestions