KeyedBossBarpublic interface BossBar
| Modifier and Type | Method | Description | 
|---|---|---|
| void | addFlag(BarFlag flag) | Add an optional flag to this boss bar | 
| void | addPlayer(Player player) | Adds the player to this boss bar causing it to display on their screen. | 
| BarColor | getColor() | Returns the color of this boss bar | 
| List<Player> | getPlayers() | Returns all players viewing this boss bar | 
| double | getProgress() | Returns the progress of the bar between 0.0 and 1.0 | 
| BarStyle | getStyle() | Returns the style of this boss bar | 
| String | getTitle() | Returns the title of this boss bar | 
| boolean | hasFlag(BarFlag flag) | Returns whether this boss bar as the passed flag set | 
| void | hide() | Deprecated.
 | 
| boolean | isVisible() | Return if the boss bar is displayed to attached players. | 
| void | removeAll() | Removes all players from this boss bar | 
| void | removeFlag(BarFlag flag) | Remove an existing flag on this boss bar | 
| void | removePlayer(Player player) | Removes the player from this boss bar causing it to be removed from their
 screen. | 
| void | setColor(BarColor color) | Sets the color of this boss bar. | 
| void | setProgress(double progress) | Sets the progress of the bar. | 
| void | setStyle(BarStyle style) | Sets the bar style of this boss bar | 
| void | setTitle(String title) | Sets the title of this boss bar | 
| void | setVisible(boolean visible) | Set if the boss bar is displayed to attached players. | 
| void | show() | Deprecated.
 | 
@NotNull String getTitle()
void setTitle(@Nullable
              String title)
title - the title of the bar@NotNull BarColor getColor()
void setColor(@NotNull
              BarColor color)
color - the color of the bar@NotNull BarStyle getStyle()
void setStyle(@NotNull
              BarStyle style)
style - the style of the barvoid removeFlag(@NotNull
                BarFlag flag)
flag - the existing flag to removevoid addFlag(@NotNull
             BarFlag flag)
flag - an optional flag to set on the boss barboolean hasFlag(@NotNull
                BarFlag flag)
flag - the flag to checkvoid setProgress(double progress)
progress - the progress of the bardouble getProgress()
void addPlayer(@NotNull
               Player player)
player - the player to addvoid removePlayer(@NotNull
                  Player player)
player - the player to removevoid removeAll()
removePlayer(Player)@NotNull List<Player> getPlayers()
void setVisible(boolean visible)
visible - visible statusboolean isVisible()
@Deprecated void show()
@Deprecated void hide()
Copyright © 2020. All rights reserved.