Minecraft::Data
Parsed Minecraft game data for one game version: the raw registries plus the derivations consumers need (block state names, air states, per-state collision shapes).
The constructor is pure — it takes the five JSON documents as strings.
Use the Minecraft::Data.load("26.2") macro to build one with the shipped
data embedded at compile time.
Constants
Game versions shipped in data/, in release order.
Constructors
Instance methods
block state nr -> boxes that combine to make up that block state's collision shape
Macros
Build a Minecraft::Data for one game version, embedding only that
version's files. version must be a string literal (or macro-time
string expression), e.g. Minecraft::Data.load("26.2").
Compile-time embed of one data file. path must be a string literal
(or a macro-time string expression), e.g.
Minecraft::Data.read_asset("26.2/entities.json")
Only the files actually referenced get embedded into the binary, so consumers control which versions they ship.