BenWoodworth / knbt

Kotlin NBT library for kotlinx.serialization
GNU Lesser General Public License v3.0
72 stars 2 forks source link

Support polymorphic serialization #13

Closed BenWoodworth closed 5 months ago

BenWoodworth commented 2 years ago

If you have any use cases please drop them here!

I'm pretty busy and not even sure polymorphic serialization is needed for NBT so unless there's a need for it I probably won't get around to it for a while

WinX64 commented 11 months ago

Perhaps now is a good time. 23w40a just changed it so Chat Components are serialized as NBT instead of JSON when sent over the network.

Support for polymorphism would help handling the different types of components, just like it's usually done with JSON (content-based polymorphism in this case).

Ayfri commented 6 months ago

Any update ?

BenWoodworth commented 5 months ago

Just pushed this out in v0.11.4! :)