Class BossMessage
java.lang.Object
ml.karmaconfigs.api.common.boss.BossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>
ml.karmaconfigs.api.bungee.makeiteasy.BossMessage
Karma boss bar message
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBossMessage(KarmaSource owner, String _message, double duration)Initialize the boss message -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Destroy the current boss barBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>Set the boss bar colorprotected voiddisplayBar(Collection<net.md_5.bungee.api.connection.ProxiedPlayer> players)Display the boss bar to the specified playersBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>displayTime(double displayTime)Set the boss bar display timeintgetBarId()Get the current boss bar idintGet the amount of bars that existgetColor()Get the boss bar colorgetStyle()Get the boss bar stylegetTitle()Get the boss bar titlebooleanGet if the boss bar is cancelledbooleanisValid()Get if the boss bar is validBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>progress(ProgressiveBar type)Set the boss bar progress typevoidscheduleBar(Collection<net.md_5.bungee.api.connection.ProxiedPlayer> players)Schedule the bar to the specified playersvoidscheduleBar(net.md_5.bungee.api.connection.ProxiedPlayer player)Schedule the bar to the specified playerBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>Set the boss bar stylebooleanUpdate the boss bar
-
Constructor Details
-
BossMessage
Initialize the boss message- Parameters:
owner- the boss message source_message- the boss bar messageduration- the boss bar duration
-
-
Method Details
-
color
Set the boss bar color- Specified by:
colorin classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Parameters:
newColor- the boss bar color- Returns:
- this boss bar instance
-
style
Set the boss bar style- Specified by:
stylein classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Parameters:
newType- the boss bar style- Returns:
- this boss bar instance
-
progress
Set the boss bar progress type- Specified by:
progressin classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Parameters:
type- the boss bar progress type- Returns:
- this boss bar instance
-
cancel
public void cancel()Destroy the current boss bar- Specified by:
cancelin classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>
-
displayBar
Display the boss bar to the specified players- Specified by:
displayBarin classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Parameters:
players- the players to display to
-
scheduleBar
Schedule the bar to the specified players- Specified by:
scheduleBarin classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Parameters:
players- the players to display to
-
scheduleBar
public void scheduleBar(net.md_5.bungee.api.connection.ProxiedPlayer player)Schedule the bar to the specified player- Specified by:
scheduleBarin classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Parameters:
player- the player to display to
-
getBarsAmount
public int getBarsAmount()Get the amount of bars that exist- Specified by:
getBarsAmountin classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Returns:
- the amount of bars created
-
getBarId
public int getBarId()Get the current boss bar id- Specified by:
getBarIdin classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Returns:
- the current boss bar id
-
update
Update the boss bar- Specified by:
updatein classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Parameters:
_message- the new boss bar textrestart- restart the bar progress- Returns:
- if the boss bar could be updated
-
displayTime
Set the boss bar display time- Specified by:
displayTimein classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Parameters:
displayTime- the boss bar display time- Returns:
- the boss bar display time
-
isValid
public boolean isValid()Get if the boss bar is valid- Specified by:
isValidin classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Returns:
- if the boss bar is valid
-
isCancelled
public boolean isCancelled()Get if the boss bar is cancelled- Specified by:
isCancelledin classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Returns:
- if the boss bar is cancelled
-
getTitle
Get the boss bar title- Specified by:
getTitlein classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Returns:
- the boss bar title
-
getColor
Get the boss bar color- Specified by:
getColorin classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Returns:
- the boss bar color
-
getStyle
Get the boss bar style- Specified by:
getStylein classBossProvider<net.md_5.bungee.api.connection.ProxiedPlayer>- Returns:
- the boss bar style
-