Struct entmet_lib::entities::entity::AbstractVillager
source · pub struct AbstractVillager {
pub headshake_timer: i32,
/* private fields */
}Expand description
An interface of a villager
Fields§
§headshake_timer: i32A timer of ticks, how long the headshake is still active
The timer starts at 40 and decrements each tick. While the value is 0 the villager won’t shake its head
Trait Implementations§
source§impl Default for AbstractVillager
impl Default for AbstractVillager
source§fn default() -> AbstractVillager
fn default() -> AbstractVillager
Returns the “default value” for a type. Read more
source§impl Deref for AbstractVillager
impl Deref for AbstractVillager
Auto Trait Implementations§
impl Freeze for AbstractVillager
impl RefUnwindSafe for AbstractVillager
impl Send for AbstractVillager
impl Sync for AbstractVillager
impl Unpin for AbstractVillager
impl UnwindSafe for AbstractVillager
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