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