CommandAPI 9.5.2
An API for the command UI introduced in Minecraft 1.13
|
A builder to create a ListArgument. More...
Classes | |
class | ListArgumentBuilderSuggests |
An intermediary class for the ListArgumentBuilder . More... | |
Public Member Functions | |
ListArgumentBuilder (String nodeName) | |
Creates a new ListArgumentBuilder with a specified node name. More... | |
ListArgumentBuilder (String nodeName, String delimiter) | |
Creates a new ListArgumentBuilder with a specified node name. More... | |
ListArgumentBuilder< T > | allowDuplicates (boolean allowDuplicates) |
Whether duplicates are allowed in the provided list. More... | |
ListArgumentBuilderSuggests | withList (Function< SuggestionInfo< CommandSender >, Collection< T > > list) |
Specifies the list to use to generate suggestions for the list argument. More... | |
ListArgumentBuilderSuggests | withList (Supplier< Collection< T > > list) |
Specifies the list to use to generate suggestions for the list argument. More... | |
ListArgumentBuilderSuggests | withList (Collection< T > list) |
Specifies the list to use to generate suggestions for the list argument. More... | |
final ListArgumentBuilderSuggests | withList (T... array) |
Specifies the list to use to generate suggestions for the list argument. More... | |
A builder to create a ListArgument.
<T> | the type that the list argument generates a list of. |
dev.jorel.commandapi.arguments.ListArgumentBuilder< T >.ListArgumentBuilder | ( | String | nodeName | ) |
Creates a new ListArgumentBuilder with a specified node name.
Defaults the delimiter for each element in the list to a space
nodeName | the name of the node for this argument |
dev.jorel.commandapi.arguments.ListArgumentBuilder< T >.ListArgumentBuilder | ( | String | nodeName, |
String | delimiter | ||
) |
Creates a new ListArgumentBuilder with a specified node name.
nodeName | the name of the node for this argument |
delimiter | the separator for each element in the list (for example, a space or a comma) |
ListArgumentBuilder< T > dev.jorel.commandapi.arguments.ListArgumentBuilder< T >.allowDuplicates | ( | boolean | allowDuplicates | ) |
Whether duplicates are allowed in the provided list.
By default, duplicates are not allowed.
allowDuplicates | whether to enable duplicates or not |
ListArgumentBuilderSuggests dev.jorel.commandapi.arguments.ListArgumentBuilder< T >.withList | ( | Collection< T > | list | ) |
Specifies the list to use to generate suggestions for the list argument.
list | a collection of elements to suggest for this list argument |
ListArgumentBuilderSuggests dev.jorel.commandapi.arguments.ListArgumentBuilder< T >.withList | ( | Function< SuggestionInfo< CommandSender >, Collection< T > > | list | ) |
Specifies the list to use to generate suggestions for the list argument.
list | a function that accepts a SuggestionInfo and returns a collection of elements to suggest for this list argument |
ListArgumentBuilderSuggests dev.jorel.commandapi.arguments.ListArgumentBuilder< T >.withList | ( | Supplier< Collection< T > > | list | ) |
Specifies the list to use to generate suggestions for the list argument.
list | a supplier that returns a collection of elements to suggest for this list argument |
final ListArgumentBuilderSuggests dev.jorel.commandapi.arguments.ListArgumentBuilder< T >.withList | ( | T... | array | ) |
Specifies the list to use to generate suggestions for the list argument.
array | an array of elements to suggest for this list argument |