Skip to main content

Crate voidmc_data

Crate voidmc_data 

Source
Expand description

Vanilla Minecraft registry data, generated at build time from JSON assets shipped under assets/<version>/.

Each entry is stored as a serialized NBT compound. Use registry or entry_nbt to access them; NBT parsing is lazy.

Asset extraction is a separate, manual step — see scripts/extract.sh.

Enums§

Version
A supported Minecraft version.

Statics§

REGISTRIES
TAGS

Functions§

entry_nbt
Lazily parses a single entry’s NBT. Each call after the first returns a cached reference.
registries
Returns every registry shipped for version.
registry
Returns the raw (entry_id, nbt_bytes) slice for (version, registry_id), or None if the registry is not shipped for this version.
registry_index
Returns the index of entry_id within registry_id for version, which is the numeric ID the client uses on the wire (e.g. in chunk biome palettes, dimension types in the Login packet). Returns None if the registry or entry isn’t shipped.
tagged_registries
Returns every tagged registry shipped for version.
tags
Returns [(tag_id, [entry_id, ...]), ...] for (version, registry_id). All #tag references are pre-resolved to direct entry IDs at build time.