Package com.cryptomorin.xseries.unused
Class BossBar
java.lang.Object
com.cryptomorin.xseries.unused.BossBar
- All Implemented Interfaces:
Cloneable
public class BossBar extends Object implements Cloneable
BossBar
This class will not be updated use
BossBar
instead.- Version:
- 1.1.0
- Author:
- Crypto Morin
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BossBar.Color
The color of the BossBar.static class
BossBar.Property
The properties of a BossBar.static class
BossBar.Style
The style of the BossBar. -
Field Summary
Fields Modifier and Type Field Description static int
MAX_BOSSBARS
The maximum number of BossBars a player can have. -
Constructor Summary
Constructors Constructor Description BossBar(String title, BossBar.Color color, BossBar.Style style, float progress, BossBar.Property... properties)
-
Method Summary
Modifier and Type Method Description BossBar
clone()
static BossBar
fromConfig(org.bukkit.configuration.ConfigurationSection section)
BossBar.Color
getColor()
UUID
getId()
float
getProgress()
Set<BossBar.Property>
getProperties()
List<UUID>
getReceivers()
String
getTitle()
boolean
hasProperty(BossBar.Property property)
boolean
isVisible()
static void
removeBossBar(List<org.bukkit.entity.Player> players)
void
send()
Sends the BossBar with the same properties to the receivers.BossBar
setColor(BossBar.Color color)
BossBar
setMessage(net.md_5.bungee.api.chat.BaseComponent component)
BossBar
setPlayers(List<org.bukkit.entity.Player> players)
BossBar
setProgress(float progress)
void
setProperties(BossBar.Property... properties)
void
setProperty(BossBar.Property property, boolean flag)
void
setPropertySilent(BossBar.Property property, boolean flag)
Sets the BossBar properties without updating it.BossBar
setReceivers(List<UUID> receivers)
BossBar
setStyle(BossBar.Style style)
BossBar
setTitle(String title)
BossBar
setVisible(boolean flag)
void
update(com.cryptomorin.xseries.unused.BossBar.Action action)
Sends the updated BossBar packet to the receivers.
-
Field Details
-
MAX_BOSSBARS
public static final int MAX_BOSSBARSThe maximum number of BossBars a player can have.- See Also:
- Constant Field Values
-
-
Constructor Details
-
BossBar
public BossBar(String title, BossBar.Color color, BossBar.Style style, float progress, BossBar.Property... properties)
-
-
Method Details
-
fromConfig
-
removeBossBar
-
hasProperty
-
setStyle
-
setPropertySilent
Sets the BossBar properties without updating it.- Parameters:
property
- the property to set.flag
- the flag of this property.- Since:
- 1.0.0
-
setProperty
-
update
public void update(com.cryptomorin.xseries.unused.BossBar.Action action)Sends the updated BossBar packet to the receivers.- Parameters:
action
- the update state.- Since:
- 1.0.0
-
send
public void send()Sends the BossBar with the same properties to the receivers.- Since:
- 1.0.0
-
setPlayers
-
isVisible
public boolean isVisible() -
setVisible
-
getColor
-
setColor
-
getProgress
public float getProgress() -
setProgress
-
getReceivers
-
setReceivers
-
getTitle
-
setTitle
-
setMessage
-
getProperties
-
setProperties
-
getId
-
clone
-