bossbar
BossBar
¶
Minecraft Boss Bar representation and packet parser.
| ATTRIBUTE | DESCRIPTION |
|---|---|
uuid |
Unique identifier for this boss bar
TYPE:
|
title |
Current display title
TYPE:
|
health |
Current health value (0.0 to 1.0)
TYPE:
|
color |
Current color ID (0-6) - 0: Pink, 1: Blue, 2: Red, 3: Green, 4: Yellow, 5: Purple, 6: White
TYPE:
|
division |
Current division type (0-4) - 0: No division, 1: 6 notches, 2: 10 notches, 3: 12 notches, 4: 20 notches
TYPE:
|
flags |
Current flag bits - 0x1: Darken sky, 0x2: Dragon bar (plays end music)
TYPE:
|
health_percentage
¶
health_percentage() -> int
Get health as percentage.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Health value as percentage (0-100) |
darken_sky
¶
darken_sky() -> bool
Check if sky darkening is enabled.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if darken sky. |