public interface BossBar
Modifier and Type | Method and Description |
---|---|
BossBar |
addConnection(UserConnection conn)
Show the bossbar to a player connection.
|
BossBar |
addFlag(BossFlag flag)
Add flags
|
BossBar |
addPlayer(java.util.UUID player)
Show the bossbar to a player (uuid).
|
BossColor |
getColor()
Get the bossbar color
|
java.util.Set<UserConnection> |
getConnections()
Get UserConnections.
|
float |
getHealth()
Get the health
|
java.util.UUID |
getId()
Get the UUID of this bossbar
|
java.util.Set<java.util.UUID> |
getPlayers()
Get players.
|
BossStyle |
getStyle()
Get the bosbar style
|
java.lang.String |
getTitle()
Get the current title
|
boolean |
hasFlag(BossFlag flag) |
BossBar |
hide()
Hide the bossbar from everyone (In the getPlayer set)
|
boolean |
isVisible()
Is it visible?
|
BossBar |
removeConnection(UserConnection conn)
Removes the bossbar from a player connection.
|
BossBar |
removeFlag(BossFlag flag)
Remove flags.
|
BossBar |
removePlayer(java.util.UUID uuid)
Removes the bossbar from a player.
|
BossBar |
setColor(BossColor color)
Yay colors!
|
BossBar |
setHealth(float health)
Change the health
|
BossBar |
setStyle(BossStyle style)
Change the bosbar style
|
BossBar |
setTitle(java.lang.String title)
Change the title
|
BossBar |
show()
Show the bossbar to everyone (In the getPlayer set)
|
java.lang.String getTitle()
BossBar setTitle(java.lang.String title)
title
- Title can be in either JSON or just textfloat getHealth()
BossBar setHealth(float health)
health
- this float has to be between 0F - 1FBossColor getColor()
BossBar setColor(BossColor color)
color
- Whatever color you want!BossStyle getStyle()
BossBar setStyle(BossStyle style)
style
- BossStyleBossBar addPlayer(java.util.UUID player)
player
- uuid of the playerBossBar addConnection(UserConnection conn)
conn
- UserConnection of the connectionBossBar removePlayer(java.util.UUID uuid)
uuid
- The players UUIDBossBar removeConnection(UserConnection conn)
conn
- The UserConnectionBossBar addFlag(BossFlag flag)
flag
- The flag to addBossBar removeFlag(BossFlag flag)
flag
- The flag to removeboolean hasFlag(BossFlag flag)
flag
- The flag to check againstjava.util.Set<java.util.UUID> getPlayers()
java.util.Set<UserConnection> getConnections()
BossBar show()
BossBar hide()
boolean isVisible()
java.util.UUID getId()