pub enum VillagerProfession {
Show 15 variants
None,
Armorer,
Butcher,
Cartographer,
Cleric,
Farmer,
Fisherman,
Fletcher,
LeatherWorker,
Librarian,
Mason,
Nitwit,
Shepherd,
Toolsmith,
Weaponsmith,
}
Variants§
None
Armorer
Butcher
Cartographer
Cleric
Farmer
Fisherman
Fletcher
LeatherWorker
Librarian
Mason
Nitwit
Shepherd
Toolsmith
Weaponsmith
Implementations§
Source§impl VillagerProfession
impl VillagerProfession
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: VarInt, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> VarInt
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for VillagerProfession
impl Clone for VillagerProfession
Source§fn clone(&self) -> VillagerProfession
fn clone(&self) -> VillagerProfession
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 VillagerProfession
impl Debug for VillagerProfession
Source§impl Deserialize for VillagerProfession
impl Deserialize for VillagerProfession
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for VillagerProfession
impl PartialEq for VillagerProfession
Source§impl Serialize for VillagerProfession
impl Serialize for VillagerProfession
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for VillagerProfession
Auto Trait Implementations§
impl Freeze for VillagerProfession
impl RefUnwindSafe for VillagerProfession
impl Send for VillagerProfession
impl Sync for VillagerProfession
impl Unpin for VillagerProfession
impl UnwindSafe for VillagerProfession
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