pub struct BossBarFlags(pub u8);
Tuple Fields§
§0: u8
Implementations§
Source§impl BossBarFlags
impl BossBarFlags
pub fn is_darken_sky(&self) -> bool
pub fn set_darken_sky(&mut self, value: bool)
pub fn is_dragon_bar(&self) -> bool
pub fn set_dragon_bar(&mut self, value: bool)
pub fn is_create_fog(&self) -> bool
pub fn set_create_fog(&mut self, value: bool)
Trait Implementations§
Source§impl Clone for BossBarFlags
impl Clone for BossBarFlags
Source§fn clone(&self) -> BossBarFlags
fn clone(&self) -> BossBarFlags
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 BossBarFlags
impl Debug for BossBarFlags
Source§impl Default for BossBarFlags
impl Default for BossBarFlags
Source§fn default() -> BossBarFlags
fn default() -> BossBarFlags
Returns the “default value” for a type. Read more
Source§impl Deserialize for BossBarFlags
impl Deserialize for BossBarFlags
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<BossBarFlags> for BossBarUpdateFlagsSpec
impl From<BossBarFlags> for BossBarUpdateFlagsSpec
Source§fn from(other: BossBarFlags) -> Self
fn from(other: BossBarFlags) -> Self
Converts to this type from the input type.
Source§impl From<BossBarUpdateFlagsSpec> for BossBarFlags
impl From<BossBarUpdateFlagsSpec> for BossBarFlags
Source§fn from(other: BossBarUpdateFlagsSpec) -> Self
fn from(other: BossBarUpdateFlagsSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BossBarFlags
impl PartialEq for BossBarFlags
Source§impl Serialize for BossBarFlags
impl Serialize for BossBarFlags
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl Copy for BossBarFlags
impl Eq for BossBarFlags
impl StructuralPartialEq for BossBarFlags
Auto Trait Implementations§
impl Freeze for BossBarFlags
impl RefUnwindSafe for BossBarFlags
impl Send for BossBarFlags
impl Sync for BossBarFlags
impl Unpin for BossBarFlags
impl UnwindSafe for BossBarFlags
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