KyoriPowered / adventure

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

BinaryTagIO.Reader & BinaryTagIO.Writer other tag support #1053

Open mworzala opened 3 months ago

mworzala commented 3 months ago

I am curious why the Reader and Writer only support reading and writing as a compound? Is there any plan to support other tag types? I am happy to contribute to this if so.

Unless I am misunderstanding something, it isn't possible to read a 1.20.3+ text component (#995) using the builtin reader if it is serialized as a single string rather than a component. I encountered this in looking into replacing the NBT library in Minestom (https://github.com/Minestom/Minestom/pull/2030), and had to avoid using the reader entirely.

zml2008 commented 3 months ago

There's changes planned to revamp the NBT IO handling, unfortunately they had to be delayed to get 4.16.0 out the door, but see #995 and #1009