#[repr(u32)]pub enum StatKind {
Mined = 0,
Crafted = 1,
Used = 2,
Broken = 3,
PickedUp = 4,
Dropped = 5,
Killed = 6,
KilledBy = 7,
Custom = 8,
}Variants§
Mined = 0
Crafted = 1
Used = 2
Broken = 3
PickedUp = 4
Dropped = 5
Killed = 6
KilledBy = 7
Custom = 8
Implementations§
Source§impl StatKind
impl StatKind
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl AzaleaRead for StatKind
impl AzaleaRead for StatKind
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for StatKind
impl AzaleaWrite for StatKind
Source§impl<'de> Deserialize<'de> for StatKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for StatKind
Available on crate feature
serde only.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 FromNbtTag for StatKind
impl FromNbtTag for StatKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl Ord for StatKind
impl Ord for StatKind
Source§impl PartialOrd for StatKind
impl PartialOrd for StatKind
Source§impl ToNbtTag for StatKind
impl ToNbtTag for StatKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl<'a> TryFrom<&'a Identifier> for StatKind
impl<'a> TryFrom<&'a Identifier> for StatKind
impl Copy for StatKind
impl Eq for StatKind
impl StructuralPartialEq for StatKind
Auto Trait Implementations§
impl Freeze for StatKind
impl RefUnwindSafe for StatKind
impl Send for StatKind
impl Sync for StatKind
impl Unpin for StatKind
impl UnwindSafe for StatKind
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.