Struct ClientBossBar
pub struct ClientBossBar {
pub uuid: u128,
pub name: Text,
pub progress: f32,
pub color: BossBarColor,
pub overlay: BossBarOverlay,
pub darken_screen: bool,
pub play_boss_music: bool,
pub create_world_fog: bool,
}Expand description
One boss bar the client shows (vanilla’s LerpingBossEvent), as
customize_boss_event_progress reads it. Any bar the server sends: mob,
raid and /bossbar ones alike.
Fields§
§uuid: u128The bar’s UUID, as the server’s boss event packets name it.
name: TextThe title drawn above the bar.
progress: f32The fill drawn this frame, 0 to 1 (getProgress, eased toward the
server’s value).
color: BossBarColorThe bar’s color.
overlay: BossBarOverlayThe notches drawn over it.
darken_screen: boolWhether it darkens the sky (shouldDarkenScreen).
play_boss_music: boolWhether it plays the boss music (shouldPlayBossMusic).
create_world_fog: boolWhether it thickens the fog (shouldCreateWorldFog).
Trait Implementations§
§impl Clone for ClientBossBar
impl Clone for ClientBossBar
§fn clone(&self) -> ClientBossBar
fn clone(&self) -> ClientBossBar
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ClientBossBar
impl Debug for ClientBossBar
§impl PartialEq for ClientBossBar
impl PartialEq for ClientBossBar
impl StructuralPartialEq for ClientBossBar
Auto Trait Implementations§
impl Freeze for ClientBossBar
impl RefUnwindSafe for ClientBossBar
impl Send for ClientBossBar
impl Sync for ClientBossBar
impl Unpin for ClientBossBar
impl UnsafeUnpin for ClientBossBar
impl UnwindSafe for ClientBossBar
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