Expand description
§maex
library crate
If you are reading this, you are reading the documentation for the maex
library crate. For the cli, kindly refer to the README file.
§Assets Folder
The assets
folder, usually located directly under .minecraft
, consists of 3 folders:
index
: This folder contains several JSON files for indexing the assets, each for a specific game version. Each JSON file contains a single keyobjects
at the top level, which is a map of asset paths to their corresponding hash and size.objects
: This folder contains the actual assets, which are stored in a hashed format. Specifically, denote the hash ashash
, the asset will be stored inobjects/hash[0..2]/hash
.skins
: Structured likeobjects
, containing skin images, but I don’t know where their indices are stored.
Functions§
- load_
index - Reads the index (as a reader), returns a map of hashed paths to meaningful paths. Note that the hashed paths are relative to base path
.minecraft/assets/objects/
. - run
- Extracts assets, given the index path and the output path.