Readonly
bossThe boss entity the bar is associated with.
The current color of the boss bar.
Readonly
occupantsA set of players that are viewing the boss bar.
The current percent of the boss bar.
The current title of the boss bar.
Hides the boss bar from a specific player.
Optional
player: PlayerThe player to hide the bossbar from.
Updates the boss bar for all occupants.
Updates the boss bar for all occupants.
Updates the boss bar for all occupants.
Shows the bossbar to a specific player.
The player to show the boss bar to.
Constructs a new bossbar ui element.