Package dev.jorel.commandapi.arguments
Class MapArgumentBuilder.MapArgumentBuilderValueMapper
java.lang.Object
dev.jorel.commandapi.arguments.MapArgumentBuilder.MapArgumentBuilderValueMapper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithValueMapper(StringParser<V> valueMapper) Specifies the mapping function to convert aStringinto the specific typeV
-
Constructor Details
-
MapArgumentBuilderValueMapper
-
-
Method Details
-
withValueMapper
public MapArgumentBuilder<K,V>.MapArgumentBuilderValueMapper.MapArgumentBuilderSuggestsKey withValueMapper(StringParser<V> valueMapper) Specifies the mapping function to convert aStringinto the specific typeV- Parameters:
valueMapper- the mapping function that creates an instance ofV- Returns:
- this map argument builder
-