endstone.boss
Classes:
BarColor
BarColor(value:int)
Attributes:
Name | Type | Description |
---|---|---|
BLUE | BarColor | |
GREEN | BarColor | |
PINK | BarColor | |
PURPLE | BarColor | |
REBECCA_PURPLE | BarColor | |
RED | BarColor | |
WHITE | BarColor | |
YELLOW | BarColor | |
name | str | |
value | int |
BLUE
BLUE: BarColor
GREEN
GREEN: BarColor
PINK
PINK: BarColor
PURPLE
PURPLE: BarColor
REBECCA_PURPLE
REBECCA_PURPLE: BarColor
RED
RED: BarColor
WHITE
WHITE: BarColor
YELLOW
YELLOW: BarColor
name
name: str
value
value: int
BarFlag
BarFlag(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 |
SEGMENTED_10
SEGMENTED_10: BarStyle
SEGMENTED_12
SEGMENTED_12: BarStyle
SEGMENTED_20
SEGMENTED_20: BarStyle
SEGMENTED_6
SEGMENTED_6: BarStyle
SOLID
SOLID: BarStyle
name
name: str
value
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. |
is_visible | bool | If the boss bar is displayed to attached players. |
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. |
color
color: BarColor
The color of this boss bar.
is_visible
is_visible: bool
If the boss bar is displayed to attached players.
players
players: list[Player]
Returns all players viewing this boss bar.
progress
progress: float
The progress of the bar between 0.0 and 1.0.
style
style: BarStyle
The style of this boss bar.
title
title: str
The title of this boss bar.
add_flag
add_flag(flag:BarFlag) -> None
Adds an optional flag to this boss bar.
add_player
add_player(player:Player) -> None
Adds the player to this boss bar causing it to display on their screen.
has_flag
has_flag(flag:BarFlag) -> bool
Checks whether this boss bar has the passed flag set.
remove_all
remove_all() -> None
Removes all players from this boss bar.
remove_flag
remove_flag(flag:BarFlag) -> None
Removes an existing flag on this boss bar.
remove_player
remove_player(player:Player) -> None
Removes the player from this boss bar causing it to be removed from their screen.
Last updated on