pub struct Compiled {
pub outputs: Vec<(String, Vec<u8>)>,
pub source: Option<Source>,
pub script: Option<String>,
pub data_files: Vec<(String, Vec<u8>)>,
pub ids: Vec<(String, String)>,
pub warnings: Vec<Diagnostic>,
pub registrations: String,
pub packed: BTreeSet<String>,
pub blocks: usize,
pub items: usize,
pub recipes: usize,
pub books: usize,
/* private fields */
}Expand description
Everything yog build makes of a mod’s content files.
Fields§
§outputs: Vec<(String, Vec<u8>)>Models, blockstates, item definitions, loot tables, textures.
source: Option<Source>The generated Rust code; None when the mod has no content files.
script: Option<String>The generated Yog Script (GENERATED_SCRIPT); None when the
content has no ids to name.
data_files: Vec<(String, Vec<u8>)>Data the code includes (include_bytes!), by path under
obj/generated/: the books, as Yog Data.
ids: Vec<(String, String)>Each block, item and entity file’s (kind, id): what the mod’s Yog Script content declarations bind to.
warnings: Vec<Diagnostic>What’s suspect but builds.
registrations: Stringyog_registry::REGISTRATIONS_FILE: what the mod registers at the
game’s start — packaged by dev builds only, for hot reload.
packed: BTreeSet<String>The pictures (.yres images’ files) an atlas took in: left out of the build.
blocks: usizeHow many blocks, items, recipes and books it compiled.
items: usizeSee Compiled::blocks.
recipes: usizeSee Compiled::blocks.
books: usizeSee Compiled::blocks.