Enum ArmPose
pub enum ArmPose {
Empty,
Item,
Block,
Bow,
CrossbowHold,
CrossbowCharge,
ThrowTrident,
TootHorn,
Spyglass,
Spear,
Brush,
Custom(CustomArmPose),
}Expand description
HumanoidModel.ArmPose’s constants, the arm poses a humanoid model has.
Variants§
Empty
No held item pose.
Item
Ordinary held item.
Block
Blocking with a shield.
Bow
Drawing a bow.
CrossbowHold
Holding a loaded crossbow.
CrossbowCharge
Charging a crossbow.
ThrowTrident
Raising a trident to throw it (or to launch with Riptide).
TootHorn
Playing a goat horn.
Spyglass
Looking through a spyglass (HumanoidModel.ArmPose.SPYGLASS).
Spear
A spear held out (HumanoidModel.ArmPose.SPEAR), at rest or charging.
Brush
A brush being used (HumanoidModel.ArmPose.BRUSH).
Custom(CustomArmPose)
A pose registered once through ArmPosesRegistrar.
Implementations§
§impl ArmPose
impl ArmPose
pub fn two_handed(self) -> bool
pub fn two_handed(self) -> bool
Both hands hold the item (BOW_AND_ARROW’s and the crossbow’s two).
pub fn affects_offhand(self) -> bool
pub fn affects_offhand(self) -> bool
The other hand’s pose gives way to this one.
Trait Implementations§
impl Copy for ArmPose
§impl<'de> Deserialize<'de> for ArmPose
impl<'de> Deserialize<'de> for ArmPose
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArmPose, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArmPose, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ArmPose
§impl Serialize for ArmPose
impl Serialize for ArmPose
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ArmPose
Auto Trait Implementations§
impl Freeze for ArmPose
impl RefUnwindSafe for ArmPose
impl Send for ArmPose
impl Sync for ArmPose
impl Unpin for ArmPose
impl UnsafeUnpin for ArmPose
impl UnwindSafe for ArmPose
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