Module mca_parser::nbt
source · Expand description
This module contains all structs related to the nbt data in the chunks
Note: Many of the descriptions for the fields/structs in this module come directly from the Minecraft Wiki, with some occasional modifications to make them make more sense (at least in this context). The latest update to these descriptions was on 5 March 2024, and I’ll try to keep them updated.
<rant>
Mojang has the worst naming conventions ever! Sometimes they use snake_case, sometimes they use
PascalCase, other times they use camelCase, sometimes it’s SCREAMING_SNAKE_CASE! This is so
annoying when dealing with Mojang things! Feel free to look at the name changes on almost
every field in this module just to make it happy and you’ll be just as annoyed as I am!
</rant>
Structs§
- From the wiki: This appears to be biome blending data, although more testing is needed to confirm.
- Data which represents a block in a chunk
- The represents that chunk’s nbt data stored in the region file
- The represents a section (or subchunk) from a chunk’s NBT data stored in the region file
- Wrapper type around a
LongArray
to abstract away the details of how the HeightMaps store their data - Several different heightmaps corresponding to 256 values compacted at 9 bits per value (lowest being 0, highest being 384, both values inclusive).
- A struct which represents a key with a namespace
Enums§
- Represents a namespace that can show up in the game
- Possible statuses for the
status
field inChunkNbt