Trait ArmPosesRegistrar
pub trait ArmPosesRegistrar {
// Required method
fn register_arm_pose(
&mut self,
name: &str,
uses_both_arms: bool,
affects_offhand: bool,
) -> CustomArmPose;
}Expand description
Client humanoid pose registrations, shared by native and wasm mods.
Required Methods§
fn register_arm_pose(
&mut self,
name: &str,
uses_both_arms: bool,
affects_offhand: bool,
) -> CustomArmPose
fn register_arm_pose( &mut self, name: &str, uses_both_arms: bool, affects_offhand: bool, ) -> CustomArmPose
Register a pose once in Hooks::register, keeping the returned token for
get_arm_pose. name must be namespaced in the registering mod’s namespace.
Duplicate or malformed names refuse registration. The flags independently
select two-arm ordering and whether the opposite hand’s pose gives way.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".