pub struct PlayerAbilityFlags(pub u8);
Tuple Fields§
§0: u8
Implementations§
Source§impl PlayerAbilityFlags
impl PlayerAbilityFlags
pub fn is_invulnerable(&self) -> bool
pub fn set_invulnerable(&mut self, value: bool)
pub fn is_flying(&self) -> bool
pub fn set_flying(&mut self, value: bool)
pub fn is_flight_allowed(&self) -> bool
pub fn set_flight_allowed(&mut self, value: bool)
pub fn is_instant_break(&self) -> bool
pub fn set_instant_break(&mut self, value: bool)
Trait Implementations§
Source§impl Clone for PlayerAbilityFlags
impl Clone for PlayerAbilityFlags
Source§fn clone(&self) -> PlayerAbilityFlags
fn clone(&self) -> PlayerAbilityFlags
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 PlayerAbilityFlags
impl Debug for PlayerAbilityFlags
Source§impl Default for PlayerAbilityFlags
impl Default for PlayerAbilityFlags
Source§fn default() -> PlayerAbilityFlags
fn default() -> PlayerAbilityFlags
Returns the “default value” for a type. Read more
Source§impl Deserialize for PlayerAbilityFlags
impl Deserialize for PlayerAbilityFlags
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for PlayerAbilityFlags
impl PartialEq for PlayerAbilityFlags
Source§impl Serialize for PlayerAbilityFlags
impl Serialize for PlayerAbilityFlags
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl Copy for PlayerAbilityFlags
impl Eq for PlayerAbilityFlags
impl StructuralPartialEq for PlayerAbilityFlags
Auto Trait Implementations§
impl Freeze for PlayerAbilityFlags
impl RefUnwindSafe for PlayerAbilityFlags
impl Send for PlayerAbilityFlags
impl Sync for PlayerAbilityFlags
impl Unpin for PlayerAbilityFlags
impl UnwindSafe for PlayerAbilityFlags
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