pub struct EntityVillagerData {
pub villager_type: VillagerType,
pub villager_profession: VillagerProfession,
pub level: VarInt,
}
Fields§
§villager_type: VillagerType
§villager_profession: VillagerProfession
§level: VarInt
Trait Implementations§
Source§impl Clone for EntityVillagerData
impl Clone for EntityVillagerData
Source§fn clone(&self) -> EntityVillagerData
fn clone(&self) -> EntityVillagerData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EntityVillagerData
impl Debug for EntityVillagerData
Source§impl Deserialize for EntityVillagerData
impl Deserialize for EntityVillagerData
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<(VillagerType, VillagerProfession, VarInt)> for EntityVillagerData
impl From<(VillagerType, VillagerProfession, VarInt)> for EntityVillagerData
Source§fn from(other: (VillagerType, VillagerProfession, VarInt)) -> Self
fn from(other: (VillagerType, VillagerProfession, VarInt)) -> Self
Converts to this type from the input type.
Source§impl From<EntityVillagerData> for (VillagerType, VillagerProfession, VarInt)
impl From<EntityVillagerData> for (VillagerType, VillagerProfession, VarInt)
Source§fn from(other: EntityVillagerData) -> Self
fn from(other: EntityVillagerData) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EntityVillagerData
impl PartialEq for EntityVillagerData
Source§impl Serialize for EntityVillagerData
impl Serialize for EntityVillagerData
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for EntityVillagerData
Auto Trait Implementations§
impl Freeze for EntityVillagerData
impl RefUnwindSafe for EntityVillagerData
impl Send for EntityVillagerData
impl Sync for EntityVillagerData
impl Unpin for EntityVillagerData
impl UnwindSafe for EntityVillagerData
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