KyoriPowered / adventure

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

Add ComponentDecoder #1034

Closed lynxplay closed 4 months ago

lynxplay commented 4 months ago

https://jd.advntr.dev/api/4.15.0/net/kyori/adventure/text/serializer/ComponentSerializer.html currently inherits from ComponentEncoder, which is nice, however the deserialising methods are not inherited from a type like e.g. ComponentDecoder.

This is unfortunate as such a type would allow platforms that only require deserialisation from an instance to skip ComponentSerialiser and properly type such instance as ComponentDecoder.