-
Method Summary
Returns a new instance of the default implementation.
Returns the mapper for the given parserType.
Registers the mapping for the given parserType.
Registers the mapping for the given parserType.
-
Method Details
-
create
Returns a new instance of the default implementation.
- Type Parameters:
C - cloud command sender type
S - brigadier command source type
- Returns:
- the mapping instance
-
mapping
Returns the mapper for the given parserType.
- Type Parameters:
T - the type produced by the parser
K - the parser type
- Parameters:
parserType - the parser type
- Returns:
- the mapping, or
null
-
registerMapping
Registers the mapping for the given parserType.
- Type Parameters:
T - the type produced by the parser
K - the parser type
- Parameters:
parserType - the parser type
mapping - the mapping
-
registerMappingUnsafe
Registers the mapping for the given parserType.
- Type Parameters:
K - the parser type
- Parameters:
parserType - the parser type
mapping - the mapping