pub struct VillagerData {
pub villager_type: i32,
pub profession: i32,
pub level: i32,
}Expand description
Villager profession, type, and level data.
Fields§
§villager_type: i32Villager type (biome variant) - registry ID.
profession: i32Profession - registry ID.
level: i32Trading level (1-5).
Implementations§
Trait Implementations§
Source§impl Clone for VillagerData
impl Clone for VillagerData
Source§fn clone(&self) -> VillagerData
fn clone(&self) -> VillagerData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VillagerData
Source§impl Debug for VillagerData
impl Debug for VillagerData
impl Eq for VillagerData
Source§impl Hash for VillagerData
impl Hash for VillagerData
Source§impl PartialEq for VillagerData
impl PartialEq for VillagerData
Source§fn eq(&self, other: &VillagerData) -> bool
fn eq(&self, other: &VillagerData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VillagerData
Auto Trait Implementations§
impl Freeze for VillagerData
impl RefUnwindSafe for VillagerData
impl Send for VillagerData
impl Sync for VillagerData
impl Unpin for VillagerData
impl UnsafeUnpin for VillagerData
impl UnwindSafe for VillagerData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.