Skip to content

[Ornithe] add: Data Tag Utils / NbtKeys, etc.#184

Open
sakura-ryoko wants to merge 3 commits intomaruohon:ornithe/1.12.2from
sakura-ryoko:DEV/ornithe/1.12.2
Open

[Ornithe] add: Data Tag Utils / NbtKeys, etc.#184
sakura-ryoko wants to merge 3 commits intomaruohon:ornithe/1.12.2from
sakura-ryoko:DEV/ornithe/1.12.2

Conversation

@sakura-ryoko
Copy link

  • Add: Data Tag / NBT Libraries from 1.21.11 derived for 1.12 with several notes
  • add: NbtKeys library
  • Update Data Tags system, and stage a few items for Masa to look at; such as adding "EmptyData" and Staging most of the future DFU compat items.
  • add: DataOps for future Codec<> DFU use (Commented out)
  • add: DataInventory for Abstracting Inventory sources from Data Tags
  • add: DataByteBufUtils
  • Minor updates to Identifier and RegistryUtils to support Tile Entities
  • add: DataTileEntityUtils as a revised/re-written version of the 1.21.11 code.
  • add: DataEntityUtils as a revised/re-written version of the 1.21.11 code.
  • add: Identifier.of() / DyeColorCode fromString, etc.

…veral notes

- add: NbtKeys library
- Update Data Tags system, and stage a few items for Masa to look at; such as adding "EmptyData" and Staging most of the future DFU compat items.
- add: DataOps for future `Codec<>` DFU use.
- add: DataInventory for Abstracting Inventory sources.
- add: DataByteBufUtils
- Minor updates to Identifier and RegistryUtils to support Tile Entities
- add: DataTileEntityUtils as a revised/re-written version of the 1.21.11 code.
- add: DataEntityUtils as a revised/re-written version of the 1.21.11 code.
- add: Identifier.of() / DyeColorCode fromString, etc.
@sakura-ryoko
Copy link
Author

I am sure there will be questions xD

@sakura-ryoko sakura-ryoko changed the title add: Data Tag Utils / NbtKeys, etc. [Orinthe] add: Data Tag Utils / NbtKeys, etc. Feb 21, 2026
@sakura-ryoko
Copy link
Author

sakura-ryoko commented Feb 23, 2026

Anyways Masa; the idea here is to bring some "familiar" items to Ornithe; at least in terms of Utility. The IMPL for these NBT parsing functions is a bit jank using custom classes; but it's really the "easiest" way to ensure future proofing the Syntax as much as I can until it requires the use of DataOps and the Registry in future versions; especially when many of the Entity types do not yet exist in Minecraft under 1.12.

And to be fair; I also saw the InventoryView stuff very late in this process; and tried to just "shore horn" it into that folder for the DataInventoryView; so it can more or less co-exist with your existing NBT-based functions.

@sakura-ryoko
Copy link
Author

sakura-ryoko commented Feb 23, 2026

Also, a lot of the Data Tag changes; I added in a way that shouldn't break any of your existing code; but realistically; it's for your review to make the changes when your downstream mods are ready to be verified that they would work as such; and I have omitted the Codec<> stuff for now.

@sakura-ryoko sakura-ryoko changed the title [Orinthe] add: Data Tag Utils / NbtKeys, etc. [Ornithe] add: Data Tag Utils / NbtKeys, etc. Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant