#[repr(u32)]pub enum PointOfInterestKind {
Show 20 variants
Armorer = 0,
Butcher = 1,
Cartographer = 2,
Cleric = 3,
Farmer = 4,
Fisherman = 5,
Fletcher = 6,
Leatherworker = 7,
Librarian = 8,
Mason = 9,
Shepherd = 10,
Toolsmith = 11,
Weaponsmith = 12,
Home = 13,
Meeting = 14,
Beehive = 15,
BeeNest = 16,
NetherPortal = 17,
Lodestone = 18,
LightningRod = 19,
}
Variants§
Armorer = 0
Butcher = 1
Cartographer = 2
Cleric = 3
Farmer = 4
Fisherman = 5
Fletcher = 6
Leatherworker = 7
Librarian = 8
Mason = 9
Shepherd = 10
Toolsmith = 11
Weaponsmith = 12
Home = 13
Meeting = 14
Beehive = 15
BeeNest = 16
NetherPortal = 17
Lodestone = 18
LightningRod = 19
Implementations§
Source§impl PointOfInterestKind
impl PointOfInterestKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl PointOfInterestKind
impl PointOfInterestKind
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 PointOfInterestKind
impl Clone for PointOfInterestKind
Source§fn clone(&self) -> PointOfInterestKind
fn clone(&self) -> PointOfInterestKind
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 PointOfInterestKind
impl Debug for PointOfInterestKind
Source§impl<'de> Deserialize<'de> for PointOfInterestKind
impl<'de> Deserialize<'de> for PointOfInterestKind
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 PointOfInterestKind
impl Display for PointOfInterestKind
Source§impl FromNbtTag for PointOfInterestKind
impl FromNbtTag for PointOfInterestKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for PointOfInterestKind
impl FromStr for PointOfInterestKind
Source§impl Hash for PointOfInterestKind
impl Hash for PointOfInterestKind
Source§impl McBufReadable for PointOfInterestKind
impl McBufReadable for PointOfInterestKind
Source§impl McBufWritable for PointOfInterestKind
impl McBufWritable for PointOfInterestKind
Source§impl PartialEq for PointOfInterestKind
impl PartialEq for PointOfInterestKind
Source§impl Registry for PointOfInterestKind
impl Registry for PointOfInterestKind
Source§impl Serialize for PointOfInterestKind
impl Serialize for PointOfInterestKind
Source§impl ToNbtTag for PointOfInterestKind
impl ToNbtTag for PointOfInterestKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for PointOfInterestKind
impl TryFrom<u32> for PointOfInterestKind
impl Copy for PointOfInterestKind
impl Eq for PointOfInterestKind
impl StructuralPartialEq for PointOfInterestKind
Auto Trait Implementations§
impl Freeze for PointOfInterestKind
impl RefUnwindSafe for PointOfInterestKind
impl Send for PointOfInterestKind
impl Sync for PointOfInterestKind
impl Unpin for PointOfInterestKind
impl UnwindSafe for PointOfInterestKind
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
)