pub struct Template {
pub name: &'static str,
pub parent: &'static str,
pub slots: &'static [&'static str],
pub sprite: bool,
pub has_particle: bool,
}Expand description
A model template — "parent": "cube_all" — and the texture slots it takes.
Fields§
§name: &'static str§parent: &'static strThe vanilla model it compiles to.
slots: &'static [&'static str]Its texture slots; for item sprites, layer0 (more layers allowed).
sprite: boolAn item sprite template (generated, handheld) — item models only.
has_particle: boolThe parent model defines particle itself.
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnsafeUnpin for Template
impl UnwindSafe for Template
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