public class UBossBar
extends java.lang.Object
| Constructor and Description |
|---|
UBossBar(BossBarBuilder bbb,
org.bukkit.boss.BossBar bar,
BossBarTimer timer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPlayer(org.bukkit.entity.Player p)
Add a player to the player Collection
|
void |
delete()
Delete the bossbar.
|
org.bukkit.boss.BossBar |
getBar() |
org.bukkit.boss.BarColor |
getColor() |
java.lang.String |
getMessage() |
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Is null if the command was not use to form this bar.
|
java.util.Collection<org.bukkit.entity.Player> |
getPlayers()
Get the players.
|
double |
getProgress() |
org.bukkit.boss.BarStyle |
getStyle() |
int |
getTime() |
BossBarTimer |
getTimer()
Get the timer asociated with the bar.
|
org.bukkit.World |
getWorld() |
boolean |
isPublicBar()
If the bar is a public bar.
|
boolean |
isTracked() |
void |
removePlayer(org.bukkit.entity.Player p)
A way to remove players as #remove does not work on Collections.
|
void |
setBar(org.bukkit.boss.BossBar bar) |
void |
setColor(org.bukkit.boss.BarColor color) |
void |
setMessage(java.lang.String message) |
void |
setParameters(java.util.Map<java.lang.String,java.lang.String> param) |
void |
setPlayers(java.util.Collection<org.bukkit.entity.Player> players) |
void |
setProgress(double progress) |
void |
setStyle(org.bukkit.boss.BarStyle style) |
void |
setTime(int time) |
void |
setTracked(boolean tracked) |
void |
setWorld(org.bukkit.World world) |
void |
updatePlayers()
Update the list of players on the live bar.
|
public UBossBar(BossBarBuilder bbb, org.bukkit.boss.BossBar bar, @Nullable BossBarTimer timer)
bbb - The instance of the builder.timer - The time (Can be null)public java.lang.String getMessage()
public void setMessage(java.lang.String message)
public org.bukkit.boss.BarColor getColor()
public void setColor(org.bukkit.boss.BarColor color)
public org.bukkit.boss.BarStyle getStyle()
public void setStyle(org.bukkit.boss.BarStyle style)
public int getTime()
public void setTime(int time)
public double getProgress()
public void setProgress(double progress)
public java.util.Collection<org.bukkit.entity.Player> getPlayers()
Note: If you want to remove players use removePlayer(Player)
public void removePlayer(org.bukkit.entity.Player p)
p - The player.public void addPlayer(org.bukkit.entity.Player p)
p - the playerpublic void setPlayers(java.util.Collection<org.bukkit.entity.Player> players)
public org.bukkit.World getWorld()
public void setWorld(org.bukkit.World world)
public boolean isTracked()
public void setTracked(boolean tracked)
public BossBarTimer getTimer()
public org.bukkit.boss.BossBar getBar()
public void setBar(org.bukkit.boss.BossBar bar)
public java.util.Map<java.lang.String,java.lang.String> getParameters()
public void setParameters(java.util.Map<java.lang.String,java.lang.String> param)
public void updatePlayers()
public void delete()
public boolean isPublicBar()