Struct valence_entity::player::PlayerModelParts
source · pub struct PlayerModelParts(pub i8);
Tuple Fields§
§0: i8
Implementations§
source§impl PlayerModelParts
impl PlayerModelParts
sourcepub fn set_jacket(&mut self, jacket: bool)
pub fn set_jacket(&mut self, jacket: bool)
Sets the bit at offset 1 .
sourcepub const fn left_sleeve(&self) -> bool
pub const fn left_sleeve(&self) -> bool
Gets the bit at offset 2 .
sourcepub fn set_left_sleeve(&mut self, left_sleeve: bool)
pub fn set_left_sleeve(&mut self, left_sleeve: bool)
Sets the bit at offset 2 .
sourcepub const fn right_sleeve(&self) -> bool
pub const fn right_sleeve(&self) -> bool
Gets the bit at offset 3 .
sourcepub fn set_right_sleeve(&mut self, right_sleeve: bool)
pub fn set_right_sleeve(&mut self, right_sleeve: bool)
Sets the bit at offset 3 .
sourcepub const fn left_pants_leg(&self) -> bool
pub const fn left_pants_leg(&self) -> bool
Gets the bit at offset 4 .
sourcepub fn set_left_pants_leg(&mut self, left_pants_leg: bool)
pub fn set_left_pants_leg(&mut self, left_pants_leg: bool)
Sets the bit at offset 4 .
sourcepub const fn right_pants_leg(&self) -> bool
pub const fn right_pants_leg(&self) -> bool
Gets the bit at offset 5 .
sourcepub fn set_right_pants_leg(&mut self, right_pants_leg: bool)
pub fn set_right_pants_leg(&mut self, right_pants_leg: bool)
Sets the bit at offset 5 .
Methods from Deref<Target = i8>§
pub const MIN: i8 = -128i8
pub const MAX: i8 = 127i8
pub const BITS: u32 = 8u32
Trait Implementations§
source§impl Clone for PlayerModelParts
impl Clone for PlayerModelParts
source§fn clone(&self) -> PlayerModelParts
fn clone(&self) -> PlayerModelParts
Returns a copy 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 Component for PlayerModelParts
impl Component for PlayerModelParts
source§const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table
const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table
A constant indicating the storage type used for this component.
§fn register_component_hooks(_hooks: &mut ComponentHooks)
fn register_component_hooks(_hooks: &mut ComponentHooks)
Called when registering this component, allowing mutable access to its [
ComponentHooks
].source§impl Debug for PlayerModelParts
impl Debug for PlayerModelParts
source§impl Default for PlayerModelParts
impl Default for PlayerModelParts
source§impl Deref for PlayerModelParts
impl Deref for PlayerModelParts
source§impl DerefMut for PlayerModelParts
impl DerefMut for PlayerModelParts
source§impl PartialEq for PlayerModelParts
impl PartialEq for PlayerModelParts
impl StructuralPartialEq for PlayerModelParts
Auto Trait Implementations§
impl Freeze for PlayerModelParts
impl RefUnwindSafe for PlayerModelParts
impl Send for PlayerModelParts
impl Sync for PlayerModelParts
impl Unpin for PlayerModelParts
impl UnwindSafe for PlayerModelParts
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
§impl<C> Bundle for Cwhere
C: Component,
impl<C> Bundle for Cwhere
C: Component,
fn component_ids( components: &mut Components, storages: &mut Storages, ids: &mut impl FnMut(ComponentId), )
unsafe fn from_components<T, F>(ctx: &mut T, func: &mut F) -> C
§fn get_component_ids(
components: &Components,
ids: &mut impl FnMut(Option<ComponentId>),
)
fn get_component_ids( components: &Components, ids: &mut impl FnMut(Option<ComponentId>), )
Gets this [
Bundle
]’s component ids. This will be None
if the component has not been registered.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<C> DynamicBundle for Cwhere
C: Component,
impl<C> DynamicBundle for Cwhere
C: Component,
fn get_components(self, func: &mut impl FnMut(StorageType, OwningPtr<'_>))
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given [World
].