-
Notifications
You must be signed in to change notification settings - Fork 12
feat(minecraft-extras): ComponentParser #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adds a parser for adventure components using a provided ComponentDecoder. Requries an adventure version bump to 4.16 for the ComponentDecoder interface.
Implemented the brig mapping contributor mapping the ComponentParser to the brig string type based on the StringMode provided. Also reverted the adventure version bump to not break compat. |
Still needs a ParserContributor, not sure how we want to handle selecting a serializer from annotations though. It should also check the string greedy/quoted annotations. |
Ok, add a ParserContributor and annotations to configure the ComponentParser |
Adds a parser for adventure components using a provided ComponentDecoder. ~~Requries an adventure version bump to 4.16 for the ComponentDecoder interface.~~reverted
Currently I have the default StringMode to QUOTED for the static factory methods that don't take a StringMode parameter. Unsure if that's the best, but I don't think SINGLE is the best option as these can regularly be expected to contain spaces.
Remade from Incendo/cloud#447