pub enum EntityAnimationKind {
SwingMainArm,
TakeDamage,
LeaveBed,
SwingOffHand,
CriticalEffect,
MagicCriticalEffect,
}
Variants§
Implementations§
Source§impl EntityAnimationKind
impl EntityAnimationKind
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: u8, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> u8
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for EntityAnimationKind
impl Clone for EntityAnimationKind
Source§fn clone(&self) -> EntityAnimationKind
fn clone(&self) -> EntityAnimationKind
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 EntityAnimationKind
impl Debug for EntityAnimationKind
Source§impl Deserialize for EntityAnimationKind
impl Deserialize for EntityAnimationKind
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for EntityAnimationKind
impl PartialEq for EntityAnimationKind
Source§impl Serialize for EntityAnimationKind
impl Serialize for EntityAnimationKind
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for EntityAnimationKind
Auto Trait Implementations§
impl Freeze for EntityAnimationKind
impl RefUnwindSafe for EntityAnimationKind
impl Send for EntityAnimationKind
impl Sync for EntityAnimationKind
impl Unpin for EntityAnimationKind
impl UnwindSafe for EntityAnimationKind
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