pub enum Hand {
MainHand,
OffHand,
}
Variants§
Implementations§
Source§impl Hand
impl Hand
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 Deserialize for Hand
impl Deserialize for Hand
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<Hand> for PlayClientAnimationSpec
impl From<Hand> for PlayClientAnimationSpec
Source§impl From<Hand> for PlayOpenBookSpec
impl From<Hand> for PlayOpenBookSpec
Source§impl From<Hand> for PlayUseItemSpec
impl From<Hand> for PlayUseItemSpec
Source§impl From<PlayClientAnimationSpec> for Hand
impl From<PlayClientAnimationSpec> for Hand
Source§fn from(other: PlayClientAnimationSpec) -> Self
fn from(other: PlayClientAnimationSpec) -> Self
Converts to this type from the input type.
Source§impl From<PlayOpenBookSpec> for Hand
impl From<PlayOpenBookSpec> for Hand
Source§fn from(other: PlayOpenBookSpec) -> Self
fn from(other: PlayOpenBookSpec) -> Self
Converts to this type from the input type.
Source§impl From<PlayUseItemSpec> for Hand
impl From<PlayUseItemSpec> for Hand
Source§fn from(other: PlayUseItemSpec) -> Self
fn from(other: PlayUseItemSpec) -> Self
Converts to this type from the input type.
Source§impl Serialize for Hand
impl Serialize for Hand
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for Hand
Auto Trait Implementations§
impl Freeze for Hand
impl RefUnwindSafe for Hand
impl Send for Hand
impl Sync for Hand
impl Unpin for Hand
impl UnwindSafe for Hand
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