
Implement ArgumentType subclasses for commonly used arguments
Z0rdak opened this issue ยท 0 comments
Overview
Implementing the CLI for the mod can be very tedious and confusing with the Minecraft argument builder system. To make the development and future adaptions easier, it would be good to implement subclasses which take care of parsing the mod-specific arguments.
This could also be used as part of an API for other mods.
Todos
Create implementations for AreaTye, RegionType, IFlag, AbstractMarkableRegion and DimensionalRegion.
NOTE: Custom ArgumentType
implementations can help with parsing arguments and getting the correct values to the argument, but without registering them, it is not possible to use them on a vanilla client.
A workaround to use them is to manually use the listSuggestion
method and use e.g. ArgumentType<String>
for the custom arguments.
NOTE 2: When dropping support for vanilla clients it would be possible to use the custom argument types to their full potential. But this is not intended, yet.
Definition of Done
- Implemented and tested ArgumentType for AreaType
- Implemented and tested ArgumentType for IFlag
- Implemented and tested ArgumentType for AbstractMarkableRegion
- Implemented and tested ArgumentType for Children of AbstractMarkableRegion
- Implemented and tested ArgumentType for Parent of AbstractMarkableRegion
- Implemented and tested ArgumentType for DimensionalRegion