public interface BossBar extends Identifiable
| Modifier and Type | Method and Description |
|---|---|
BossBarColor |
getColor()
Gets the color.
|
Text |
getName()
Gets the name of this boss bar.
|
BossBarOverlay |
getOverlay()
Gets the overlay.
|
float |
getPercent()
Gets the percent.
|
BossBar |
setColor(BossBarColor color)
Sets the color.
|
BossBar |
setCreateFog(boolean createFog)
Sets if fog should be created.
|
BossBar |
setDarkenSky(boolean darkenSky)
Sets if the sky should darken.
|
BossBar |
setName(Text name)
Sets the name of this boss bar.
|
BossBar |
setOverlay(BossBarOverlay overlay)
Sets the overlay.
|
BossBar |
setPercent(float percent)
Sets the percent.
|
BossBar |
setPlayEndBossMusic(boolean playEndBossMusic)
Sets if the end boss music should be played.
|
boolean |
shouldCreateFog()
If fog should be created.
|
boolean |
shouldDarkenSky()
If the sky should darken.
|
boolean |
shouldPlayEndBossMusic()
If the end boss music should be played.
|
getUniqueIdText getName()
BossBar setName(Text name)
name - The boss bar namefloat getPercent()
BossBar setPercent(float percent)
The percent must be between 0.0 and 1.0.
percent - The percentBossBarColor getColor()
BossBar setColor(BossBarColor color)
color - The color of the boss barBossBarOverlay getOverlay()
BossBar setOverlay(BossBarOverlay overlay)
overlay - The overlayboolean shouldDarkenSky()
BossBar setDarkenSky(boolean darkenSky)
darkenSky - If the sky should darkenboolean shouldPlayEndBossMusic()
BossBar setPlayEndBossMusic(boolean playEndBossMusic)
playEndBossMusic - If the end boss music should be playedboolean shouldCreateFog()
BossBar setCreateFog(boolean createFog)
createFog - If fog should be created