Struct MobRender
pub struct MobRender<'a> {}Expand description
One mob’s frame, as EntityRenderer.extractRenderState fills a
LivingEntityRenderState: what a model reads to pose and animate itself.
Angles are in degrees, interpolated to the frame’s partial tick.
Fields§
§id: u32The mob’s network id, as the mob helpers and mod messages name it.
kind: &'a strIts entity type (minecraft:villager).
custom_name: Option<&'a str>Its CustomName as plain text, when it has one.
baby: boolisBaby.
partial: f32The frame’s partial tick, 0 to 1.
age: f32ageInTicks: ticks lived plus the partial tick, for idle motion.
body_yaw: f32bodyRot: the way the body faces (0 is south, 90 west).
head_yaw: f32yRot: the head’s turn from the body, -180 to 180.
pitch: f32xRot: the head’s pitch, positive looking down.
walk_position: f32walkAnimationPos: how far the legs have swung, for a walk cycle
(a vanilla quadruped’s legs swing cos(pos * 0.6662) * 1.4 * speed radians).
walk_speed: f32walkAnimationSpeed: how fast it walks, 0 standing to about 1.
hurt_time: i32Ticks left of the red hurt flash (10 when hit).
death_time: i32Ticks since it died, 0 while alive (vanilla tips the body over 20).
on_ground: bool