public abstract class BossBar<T> extends Object
| Constructor and Description | 
|---|
BossBar()  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract BossBar | 
addConnection(UserConnection conn)
Show the bossbar to a player connection. 
 | 
abstract BossBar | 
addFlag(BossFlag flag)
Add flags 
 | 
BossBar | 
addPlayer(T player)
Deprecated. 
 
Deprecated use UUID's instead of Player objects  
addPlayer(UUID) | 
abstract BossBar | 
addPlayer(UUID player)
Show the bossbar to a player (uuid). 
 | 
BossBar | 
addPlayers(T... players)
Deprecated. 
 
Deprecated use UUID's instead of Player objects  
addPlayer(UUID) | 
abstract BossColor | 
getColor()
Get the bossbar color 
 | 
abstract Set<UserConnection> | 
getConnections()
Get UserConnections. 
 | 
abstract float | 
getHealth()
Get the health 
 | 
abstract UUID | 
getId()
Get the UUID of this bossbar 
 | 
abstract Set<UUID> | 
getPlayers()
Get players. 
 | 
abstract BossStyle | 
getStyle()
Get the bosbar style 
 | 
abstract String | 
getTitle()
Get the current title 
 | 
abstract boolean | 
hasFlag(BossFlag flag)  | 
abstract BossBar | 
hide()
Hide the bossbar from everyone (In the getPlayer set) 
 | 
abstract boolean | 
isVisible()
Is it visible? 
 | 
abstract BossBar | 
removeConnection(UserConnection conn)
Removes the bossbar from a player connection. 
 | 
abstract BossBar | 
removeFlag(BossFlag flag)
Remove flags. 
 | 
BossBar | 
removePlayer(T player)
Deprecated. 
 
Deprecated use UUID's instead of Player objects  
removePlayer(UUID) | 
abstract BossBar | 
removePlayer(UUID uuid)
Removes the bossbar from a player. 
 | 
abstract BossBar | 
setColor(BossColor color)
Yay colors! 
 | 
abstract BossBar | 
setHealth(float health)
Change the health 
 | 
abstract BossBar | 
setStyle(BossStyle style)
Change the bosbar style 
 | 
abstract BossBar | 
setTitle(String title)
Change the title 
 | 
abstract BossBar | 
show()
Show the bossbar to everyone (In the getPlayer set) 
 | 
public abstract String getTitle()
public abstract BossBar setTitle(String title)
title - Title can be in either JSON or just textpublic abstract float getHealth()
public abstract BossBar setHealth(float health)
health - this float has to be between 0F - 1Fpublic abstract BossColor getColor()
public abstract BossBar setColor(BossColor color)
color - Whatever color you want!public abstract BossStyle getStyle()
public abstract BossBar setStyle(BossStyle style)
style - BossStyle@Deprecated public BossBar addPlayer(T player)
addPlayer(UUID)player - The playerpublic abstract BossBar addPlayer(UUID player)
player - uuid of the playerpublic abstract BossBar addConnection(UserConnection conn)
conn - UserConnection of the connection@Deprecated public BossBar addPlayers(T... players)
addPlayer(UUID)players - list of players@Deprecated public BossBar removePlayer(T player)
removePlayer(UUID)player - The playerpublic abstract BossBar removePlayer(UUID uuid)
uuid - The players UUIDpublic abstract BossBar removeConnection(UserConnection conn)
conn - The UserConnectionpublic abstract BossBar addFlag(BossFlag flag)
flag - The flag to addpublic abstract BossBar removeFlag(BossFlag flag)
flag - The flag to removepublic abstract boolean hasFlag(BossFlag flag)
flag - The flag to check againstpublic abstract Set<UUID> getPlayers()
public abstract Set<UserConnection> getConnections()
public abstract BossBar show()
public abstract BossBar hide()
public abstract boolean isVisible()
public abstract UUID getId()
Copyright © 2016–2021. All rights reserved.