QuiltMC / quilt-kotlin-libraries

Quilt's official Kotlin libraries, which provide wrappers for QSL and Minecraft to ease development in Kotlin
Apache License 2.0
52 stars 18 forks source link

NBT API/DSL #6

Open SilverAndro opened 2 years ago

SilverAndro commented 2 years ago

Intro:

The NBT format is the most commonly used format for data saving and transfer in Minecraft, but current internal APIs mostly work on single access and conversion per tag, which can cause strange issues when a wrapper tag is expected that doesn't exist, a tag is missing, ect. An NBT API/DSL may be capable of mitigating certain issues with this system such as potentially providing:

Existing work:

Kroppeb commented 2 years ago

This is my old code to allow the use of kotlinx serializers to be used to serialize to and deserialize from nbt