pub struct ModelFace {
pub uv: Option<[f32; 4]>,
pub texture: String,
pub cullface: Option<Direction>,
pub rotation: i32,
pub tintindex: i32,
}Expand description
A face of a model element.
Fields§
§uv: Option<[f32; 4]>UV coordinates [u1, v1, u2, v2] in 0-16 range.
texture: StringTexture reference (e.g., “#side” or “block/stone”).
cullface: Option<Direction>Face direction for culling (if adjacent block is opaque, hide this face).
rotation: i32UV rotation in degrees (0, 90, 180, 270).
tintindex: i32Tint index for biome coloring (-1 = no tint).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelFace
impl<'de> Deserialize<'de> for ModelFace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModelFace
impl RefUnwindSafe for ModelFace
impl Send for ModelFace
impl Sync for ModelFace
impl Unpin for ModelFace
impl UnwindSafe for ModelFace
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