public interface AbstractBossBar
extends io.lumine.utils.terminable.Terminable
Modifier and Type | Interface and Description |
---|---|
static class |
AbstractBossBar.BarColor |
static class |
AbstractBossBar.BarFlag |
static class |
AbstractBossBar.BarStyle |
Modifier and Type | Method and Description |
---|---|
void |
addFlag(String flag)
Add an optional flag to this boss bar
|
void |
addPlayer(AbstractPlayer player)
Adds the player to this boss bar causing it to display on their screen.
|
AbstractBossBar.BarColor |
getColor()
Returns the color of this boss bar
|
List<AbstractPlayer> |
getPlayers()
Returns all players viewing this boss bar
|
double |
getProgress()
Returns the progress of the bar between 0.0 and 1.0
|
AbstractBossBar.BarStyle |
getStyle()
Returns the style of this boss bar
|
String |
getTitle()
Returns the title of this boss bar
|
boolean |
hasFlag(String flag)
Returns whether this boss bar as the passed flag set
|
boolean |
isVisible()
Return if the boss bar is displayed to attached players.
|
void |
removeAll()
Removes all players from this boss bar
|
void |
removeFlag(String flag)
Remove an existing flag on this boss bar
|
void |
removePlayer(AbstractPlayer player)
Removes the player from this boss bar causing it to be removed from their
screen.
|
void |
setColor(String color)
Sets the color of this boss bar.
|
void |
setCreateFog(boolean b) |
void |
setDarkenSky(boolean b) |
void |
setPlayBossMusic(boolean b) |
void |
setProgress(double progress)
Sets the progress of the bar.
|
void |
setStyle(String 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.
|
String getTitle()
void setTitle(String title)
title
- the title of the barAbstractBossBar.BarColor getColor()
void setColor(String color)
color
- the color of the barAbstractBossBar.BarStyle getStyle()
void setStyle(String style)
style
- the style of the barvoid removeFlag(String flag)
flag
- the existing flag to removevoid addFlag(String flag)
flag
- an optional flag to set on the boss barboolean hasFlag(String flag)
flag
- the flag to checkvoid setProgress(double progress)
progress
- the progress of the bardouble getProgress()
void addPlayer(AbstractPlayer player)
player
- the player to addvoid removePlayer(AbstractPlayer player)
player
- the player to removevoid removeAll()
removeAll()
List<AbstractPlayer> getPlayers()
void setVisible(boolean visible)
visible
- visible statusboolean isVisible()
void setCreateFog(boolean b)
void setDarkenSky(boolean b)
void setPlayBossMusic(boolean b)
Copyright © 2020. All rights reserved.