KyoriPowered / adventure

A user-interface library, formerly known as text, for Minecraft: Java Edition
https://docs.advntr.dev/
MIT License
679 stars 105 forks source link

Promote `MiniMessage#preProcessor` and `MiniMessage#postProcessor` to `ComponentSerializer` #881

Open kezz opened 1 year ago

kezz commented 1 year ago

It would be nice to be able to set a pre/post processor for all serializers - this could mean we could introduce a common ComponentSerializer.Builder interface.

For example, it could be useful to compact components before converting to JSON for space reasons.