public abstract class CommonBoss<T> extends BossBar<T>
Constructor and Description |
---|
CommonBoss(String title,
float health,
BossColor color,
BossStyle style) |
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(UUID player)
Show the bossbar to a player (uuid).
|
BossColor |
getColor()
Get the bossbar color
|
Set<UserConnection> |
getConnections()
Get UserConnections.
|
Set<BossFlag> |
getFlags() |
float |
getHealth()
Get the health
|
UUID |
getId()
Get the UUID of this bossbar
|
Set<UUID> |
getPlayers()
Get players.
|
BossStyle |
getStyle()
Get the bosbar style
|
String |
getTitle()
Get the current title
|
UUID |
getUuid() |
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(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(String title)
Change the title
|
BossBar |
show()
Show the bossbar to everyone (In the getPlayer set)
|
addPlayer, addPlayers, removePlayer
public BossBar setTitle(String title)
BossBar
public BossBar setHealth(float health)
BossBar
public BossBar setColor(BossColor color)
BossBar
public BossBar setStyle(BossStyle style)
BossBar
public BossBar addPlayer(UUID player)
BossBar
public BossBar addConnection(UserConnection conn)
BossBar
addConnection
in class BossBar<T>
conn
- UserConnection of the connectionpublic BossBar removePlayer(UUID uuid)
BossBar
removePlayer
in class BossBar<T>
uuid
- The players UUIDpublic BossBar removeConnection(UserConnection conn)
BossBar
removeConnection
in class BossBar<T>
conn
- The UserConnectionpublic BossBar removeFlag(BossFlag flag)
BossBar
removeFlag
in class BossBar<T>
flag
- The flag to removepublic boolean hasFlag(BossFlag flag)
public Set<UUID> getPlayers()
BossBar
getPlayers
in class BossBar<T>
public Set<UserConnection> getConnections()
BossBar
getConnections
in class BossBar<T>
public BossBar show()
BossBar
public BossBar hide()
BossBar
public boolean isVisible()
BossBar
public UUID getUuid()
public float getHealth()
BossBar
Copyright © 2016–2021. All rights reserved.