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