#[repr(u32)]pub enum VillagerKind {
Desert = 0,
Jungle = 1,
Plains = 2,
Savanna = 3,
Snow = 4,
Swamp = 5,
Taiga = 6,
}
Variants§
Implementations§
Source§impl VillagerKind
impl VillagerKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl VillagerKind
impl VillagerKind
Sourcepub unsafe fn from_u32_unchecked(id: u32) -> Self
pub unsafe fn from_u32_unchecked(id: u32) -> Self
pub fn is_valid_id(id: u32) -> bool
Trait Implementations§
Source§impl Clone for VillagerKind
impl Clone for VillagerKind
Source§fn clone(&self) -> VillagerKind
fn clone(&self) -> VillagerKind
Returns a copy 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 VillagerKind
impl Debug for VillagerKind
Source§impl<'de> Deserialize<'de> for VillagerKind
impl<'de> Deserialize<'de> for VillagerKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for VillagerKind
impl Display for VillagerKind
Source§impl FromNbtTag for VillagerKind
impl FromNbtTag for VillagerKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for VillagerKind
impl FromStr for VillagerKind
Source§impl Hash for VillagerKind
impl Hash for VillagerKind
Source§impl McBufReadable for VillagerKind
impl McBufReadable for VillagerKind
Source§impl McBufWritable for VillagerKind
impl McBufWritable for VillagerKind
Source§impl PartialEq for VillagerKind
impl PartialEq for VillagerKind
Source§impl Registry for VillagerKind
impl Registry for VillagerKind
Source§impl Serialize for VillagerKind
impl Serialize for VillagerKind
Source§impl ToNbtTag for VillagerKind
impl ToNbtTag for VillagerKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for VillagerKind
impl TryFrom<u32> for VillagerKind
impl Copy for VillagerKind
impl Eq for VillagerKind
impl StructuralPartialEq for VillagerKind
Auto Trait Implementations§
impl Freeze for VillagerKind
impl RefUnwindSafe for VillagerKind
impl Send for VillagerKind
impl Sync for VillagerKind
impl Unpin for VillagerKind
impl UnwindSafe for VillagerKind
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)