Package dev.jorel.commandapi.arguments
Class MapArgumentBuilder.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey.MapArgumentBuilderSuggestsValue
java.lang.Object
dev.jorel.commandapi.arguments.MapArgumentBuilder.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey.MapArgumentBuilderSuggestsValue
public class MapArgumentBuilder.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey.MapArgumentBuilderSuggestsValue
extends Object
An intermediary class for the
MapArgumentBuilder-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMapArgumentBuilder<K,V>.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey.MapArgumentBuilderSuggestsValue.MapArgumentBuilderFinished When using this method, no value suggestions are displayed!MapArgumentBuilder<K,V>.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey.MapArgumentBuilderSuggestsValue.MapArgumentBuilderFinished withValueList(List<String> valueList) Provides a list of values to suggest after a key was typed.MapArgumentBuilder<K,V>.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey.MapArgumentBuilderSuggestsValue.MapArgumentBuilderFinished withValueList(List<String> valueList, boolean allowDuplicates) Provides a list of values to suggest after a key was typed.
-
Constructor Details
-
MapArgumentBuilderSuggestsValue
-
-
Method Details
-
withValueList
public MapArgumentBuilder<K,V>.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey.MapArgumentBuilderSuggestsValue.MapArgumentBuilderFinished withValueList(List<String> valueList) Provides a list of values to suggest after a key was typed. Using this method will not allow writing values more than once!If you want to allow that, please use the
withValueList(List, boolean)method!- Parameters:
valueList- A list of values to suggest. The values need to be Strings, so they can be suggested- Returns:
- this map argument builder
-
withValueList
public MapArgumentBuilder<K,V>.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey.MapArgumentBuilderSuggestsValue.MapArgumentBuilderFinished withValueList(List<String> valueList, boolean allowDuplicates) Provides a list of values to suggest after a key was typed.- Parameters:
valueList- A list of values to suggest. The values need to be Strings, so they can be suggestedallowDuplicates- Decides if a value can be written more than once- Returns:
- this map argument builder
-
withoutValueList
public MapArgumentBuilder<K,V>.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey.MapArgumentBuilderSuggestsValue.MapArgumentBuilderFinished withoutValueList()When using this method, no value suggestions are displayed!- Returns:
- this map argument builder
-