Boss
endstone.boss
¶
Classes:
Name | Description |
---|---|
BarColor |
|
BarFlag |
|
BarStyle |
|
BossBar |
Represents a boss bar that is displayed to players. |
BarColor
¶
BarColor(value: int)
BarStyle
¶
BarStyle(value: int)
Attributes:
Name | Type | Description |
---|---|---|
SEGMENTED_10 |
BarStyle
|
|
SEGMENTED_12 |
BarStyle
|
|
SEGMENTED_20 |
BarStyle
|
|
SEGMENTED_6 |
BarStyle
|
|
SOLID |
BarStyle
|
|
name |
str
|
|
value |
int
|
|
BossBar
¶
Represents a boss bar that is displayed to players.
Methods:
Name | Description |
---|---|
add_flag |
Adds an optional flag to this boss bar. |
add_player |
Adds the player to this boss bar causing it to display on their screen. |
has_flag |
Checks whether this boss bar has the passed flag set. |
remove_all |
Removes all players from this boss bar. |
remove_flag |
Removes an existing flag on this boss bar. |
remove_player |
Removes the player from this boss bar causing it to be removed from their screen. |
Attributes:
Name | Type | Description |
---|---|---|
color |
BarColor
|
The color of this boss bar. |
players |
list[Player]
|
Returns all players viewing this boss bar. |
progress |
float
|
The progress of the bar between 0.0 and 1.0. |
style |
BarStyle
|
The style of this boss bar. |
title |
str
|
The title of this boss bar. |
visible |
bool
|
If the boss bar is displayed to attached players. |