CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
|
An intermediary class for the ListArgumentBuilder
.
More...
Classes | |
class | ListArgumentBuilderFinished |
An intermediary class for the ListArgumentBuilder . More... | |
Public Member Functions | |
ListArgumentBuilderFinished | withStringMapper () |
Specifies that the mapping function for this argument calls the toString() method. More... | |
ListArgumentBuilderFinished | withMapper (Function< T, String > mapper) |
Specifies the mapping function of the specific type T to a String so an element can be shown to a user as suggestions. More... | |
ListArgumentBuilderFinished | withStringTooltipMapper (Function< T, IStringTooltip > mapper) |
Specifies the mapping function of the specific type T to a IStringTooltip so an element can be shown to a user as a suggestion with a tooltip. More... | |
An intermediary class for the ListArgumentBuilder
.
ListArgumentBuilderFinished dev.jorel.commandapi.arguments.ListArgumentBuilder< T >.ListArgumentBuilderSuggests.withMapper | ( | Function< T, String > | mapper | ) |
Specifies the mapping function of the specific type T
to a String
so an element can be shown to a user as suggestions.
mapper | the mapping function that creates a String |
ListArgumentBuilderFinished dev.jorel.commandapi.arguments.ListArgumentBuilder< T >.ListArgumentBuilderSuggests.withStringMapper | ( | ) |
Specifies that the mapping function for this argument calls the toString()
method.
ListArgumentBuilderFinished dev.jorel.commandapi.arguments.ListArgumentBuilder< T >.ListArgumentBuilderSuggests.withStringTooltipMapper | ( | Function< T, IStringTooltip > | mapper | ) |
Specifies the mapping function of the specific type T
to a IStringTooltip
so an element can be shown to a user as a suggestion with a tooltip.
mapper | the mapping function that creates an IStringTooltip |