Struct level_lib::structs::level::CustomBossEvent
source · pub struct CustomBossEvent {
pub id: String,
pub players: Vec<u128>,
pub color: String,
pub create_world_fog: bool,
pub darken_screen: bool,
pub max: i32,
pub value: i32,
pub name: JSONTextComponent,
pub overlay: Overlay,
pub play_boss_music: bool,
pub visible: bool,
}Expand description
Structure to hold bossbar information
Fields§
§id: StringThe id of the bossbar (e.g.custom:boss)
players: Vec<u128>A list of players that may see this boss bar
color: StringThe color id of the bossbar color
create_world_fog: boolIf the bossbar should create fog
darken_screen: boolIf the bossbar should darken the sky
max: i32The maximum health of the bossbar
value: i32The current health of the bossbar
name: JSONTextComponentThe displayed name of the bossbar as
overlay: OverlayThe overlay shown over the healthbar
play_boss_music: boolIf the boosbar should initiate boss music
visible: boolIf the bossbar should be visible to the listed players
Auto Trait Implementations§
impl Freeze for CustomBossEvent
impl RefUnwindSafe for CustomBossEvent
impl Send for CustomBossEvent
impl Sync for CustomBossEvent
impl Unpin for CustomBossEvent
impl UnwindSafe for CustomBossEvent
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