CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
|
An intermediary class for the MapArgumentBuilder
.
More...
Classes | |
class | MapArgumentBuilderFinished |
An intermediary class for the MapArgumentBuilder . More... | |
Public Member Functions | |
MapArgumentBuilderSuggestsValue (List< String > keyList) | |
MapArgumentBuilderFinished | withValueList (List< String > valueList) |
Provides a list of values to suggest when a user types this argument. More... | |
MapArgumentBuilderFinished | withValueList (List< String > valueList, boolean allowDuplicates) |
Provides a list of values to suggest when a user types this argument. More... | |
MapArgumentBuilderFinished | withoutValueList () |
When using this method, no value suggestions are displayed and any values can be given for the final map. More... | |
MapArgumentBuilderFinished | withoutValueList (boolean allowDuplicates) |
When using this method, no value suggestions are displayed and any values can be given for the final map. More... | |
An intermediary class for the MapArgumentBuilder
.
MapArgumentBuilderFinished dev.jorel.commandapi.arguments.MapArgumentBuilder< K, V >.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey.MapArgumentBuilderSuggestsValue.withoutValueList | ( | ) |
When using this method, no value suggestions are displayed and any values can be given for the final map.
To restrict the values that can be given for this map, use withValueList(List)
instead.
Additionally, duplicate values are not allowed. If a duplicate value is given, a CommandSyntaxException is thrown. To allow duplicate values, use the withoutValueList(boolean)
method instead.
MapArgumentBuilderFinished dev.jorel.commandapi.arguments.MapArgumentBuilder< K, V >.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey.MapArgumentBuilderSuggestsValue.withoutValueList | ( | boolean | allowDuplicates | ) |
When using this method, no value suggestions are displayed and any values can be given for the final map.
To restrict the values that can be given for this map, use withValueList(List, boolean)
instead.
If allowDuplicates is true, then multiple keys may be given the same value. Otherwise, if a duplicate value is given, a CommandSyntaxException is thrown.
allowDuplicates | Decides if a value can be written more than once |
MapArgumentBuilderFinished dev.jorel.commandapi.arguments.MapArgumentBuilder< K, V >.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey.MapArgumentBuilderSuggestsValue.withValueList | ( | List< String > | valueList | ) |
Provides a list of values to suggest when a user types this argument.
All values given for the final map must come from this list, otherwise a CommandSyntaxException is thrown.
Additionally, duplicate values are not allowed. If a duplicate value is given, a CommandSyntaxException is thrown. To allow duplicate values, use the withValueList(List, boolean)
method instead.
valueList | A list of values to suggest. The values need to be Strings, so they can be suggested |
MapArgumentBuilderFinished dev.jorel.commandapi.arguments.MapArgumentBuilder< K, V >.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey.MapArgumentBuilderSuggestsValue.withValueList | ( | List< String > | valueList, |
boolean | allowDuplicates | ||
) |
Provides a list of values to suggest when a user types this argument.
All values given for the final map must come from this list, otherwise a CommandSyntaxException is thrown.
If allowDuplicates is true, then multiple keys may be given the same value. Otherwise, if a duplicate value is given, a CommandSyntaxException is thrown.
valueList | A list of values to suggest. The values need to be Strings, so they can be suggested |
allowDuplicates | Decides if a value can be written more than once |