public class BossBarBuilder
extends java.lang.Object
The recommended way
| Constructor and Description |
|---|
BossBarBuilder(boolean tracked)
The api for building bossbars.
|
| Modifier and Type | Method and Description |
|---|---|
UBossBar |
build()
Build the bar (aka, create it).
|
UBossBar |
buildDead()
Create a permanent bar.
|
boolean |
getPublicBar() |
boolean |
hasPlayers()
If there are any players associated witht he bar.
|
boolean |
isOnePlayer()
If there is only one player associated with the bar.
|
void |
setColor(org.bukkit.boss.BarColor color)
Set the color of the boss bar.
|
void |
setMessage(java.lang.String s)
Set the message of the boss bar.
|
void |
setPlayerCollection(java.util.Collection<org.bukkit.entity.Player> players)
Set a collection of players.
|
void |
setProgress(double progress)
Set the progress of the bossbar.
|
void |
setPublicBar(boolean bool) |
void |
setSinglePlayer(org.bukkit.entity.Player p)
Set a single player to a bar.
|
void |
setStyle(org.bukkit.boss.BarStyle style)
Set the style of the boss bar.
|
void |
setTime(int time)
Set the time of the bossbar.
|
void |
setWorld(org.bukkit.World w)
Set the world a player/players need to be in.
|
public BossBarBuilder(boolean tracked)
tracked - If the UBossBar class should be stored in the active bars list once built.public void setMessage(java.lang.String s)
s - public void setColor(org.bukkit.boss.BarColor color)
color - public void setStyle(org.bukkit.boss.BarStyle style)
style - public void setTime(int time)
time - public void setProgress(double progress)
progress - public void setSinglePlayer(org.bukkit.entity.Player p)
p - The playerpublic void setPlayerCollection(java.util.Collection<org.bukkit.entity.Player> players)
players - The collection of players.public void setWorld(org.bukkit.World w)
w - public boolean isOnePlayer()
public boolean getPublicBar()
public void setPublicBar(boolean bool)
public boolean hasPlayers()
public UBossBar build()
public UBossBar buildDead()