public interface BossBar
| Modifier and Type | Method and 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. 
 
 | 
String getTitle()
void setTitle(String title)
title - the title of the barBarColor getColor()
void setColor(BarColor color)
color - the color of the barBarStyle getStyle()
void setStyle(BarStyle style)
style - the style of the barvoid removeFlag(BarFlag flag)
flag - the existing flag to removevoid addFlag(BarFlag flag)
flag - an optional flag to set on the boss barboolean hasFlag(BarFlag flag)
flag - the flag to checkvoid setProgress(double progress)
progress - the progress of the bardouble getProgress()
void addPlayer(Player player)
player - the player to addvoid removePlayer(Player player)
player - the player to removevoid removeAll()
removePlayer(Player)List<Player> getPlayers()
void setVisible(boolean visible)
visible - visible statusboolean isVisible()
@Deprecated void show()
setVisible(boolean)@Deprecated void hide()
setVisible(boolean)Copyright © 2016. All rights reserved.