pub struct Compiled {
pub outputs: Vec<Output>,
pub source: Option<String>,
pub data_files: Vec<(String, Vec<u8>)>,
pub warnings: Vec<String>,
pub registrations: 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<Output>Models, blockstates, item definitions, loot tables, textures.
source: Option<String>The generated Rust code; None when the mod has no content files.
data_files: Vec<(String, Vec<u8>)>Data the code includes (include_bytes!), by path under
.yog-build/generated/: the books, as Yog Data.
warnings: Vec<String>§registrations: Stringyog_registry::REGISTRATIONS_FILE: what the mod registers at the
game’s start — packaged by dev builds only, for hot reload.
blocks: usize§items: usize§recipes: usize§books: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for Compiled
impl RefUnwindSafe for Compiled
impl Send for Compiled
impl Sync for Compiled
impl Unpin for Compiled
impl UnsafeUnpin for Compiled
impl UnwindSafe for Compiled
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more