CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.arguments.MapArgumentBuilder< K, V >.MapArgumentBuilderValueMapper Class Reference

An intermediary class for the MapArgumentBuilder. More...

Classes

class  MapArgumentBuilderSuggestsKey
 An intermediary class for the MapArgumentBuilder. More...
 

Public Member Functions

 MapArgumentBuilderValueMapper (StringParser< K > keyMapper)
 
MapArgumentBuilderSuggestsKey withValueMapper (StringParser< V > valueMapper)
 Specifies the mapping function to convert a String into the specific type V More...
 

Detailed Description

An intermediary class for the MapArgumentBuilder.

Member Function Documentation

◆ withValueMapper()

MapArgumentBuilderSuggestsKey dev.jorel.commandapi.arguments.MapArgumentBuilder< K, V >.MapArgumentBuilderValueMapper.withValueMapper ( StringParser< V >  valueMapper)

Specifies the mapping function to convert a String into the specific type V

Parameters
valueMapperthe mapping function that creates an instance of V
Returns
this map argument builder