Class PlayerBossbar
java.lang.Object
me.remigio07.chatplugin.api.server.bossbar.PlayerBossbar
Represents a
ChatPluginServerPlayer
's displayed bossbar.-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Gets this bossbar's color.Gets the player this bossbar is being displayed to.abstract float
Gets this bossbar's progress.getStyle()
Gets this bossbar's style.abstract String
getTitle()
Gets this bossbar's title.abstract boolean
isHidden()
Checks if this bossbar is hidden.void
setColor
(BossbarColorAdapter color) Sets this bossbar's color.abstract void
setHidden
(boolean hidden) Sets if this bossbar should be hidden.abstract void
setProgress
(float progress) Sets this bossbar's progress.void
setStyle
(BossbarStyleAdapter style) Sets this bossbar's style.abstract void
Sets this bossbar's title.abstract void
Unregisters this bossbar.
-
Method Details
-
getPlayer
Gets the player this bossbar is being displayed to.- Returns:
- Bossbar's player
-
getColor
Gets this bossbar's color.- Returns:
- Bossbar's color
-
setColor
Sets this bossbar's color.- Parameters:
color
- Color to set- Throws:
UnsupportedOperationException
- If this method is called on a reflection bossbar
-
getStyle
Gets this bossbar's style.- Returns:
- Bossbar's style
-
setStyle
Sets this bossbar's style.- Parameters:
style
- Style to set- Throws:
UnsupportedOperationException
- If this method is called on a reflection bossbar
-
getTitle
Gets this bossbar's title.- Returns:
- Bossbar's title
-
setTitle
Sets this bossbar's title.- Parameters:
title
- Title to set
-
getProgress
public abstract float getProgress()Gets this bossbar's progress.- Returns:
- Bossbar's progress (0.0 - 1.0)
-
setProgress
public abstract void setProgress(float progress) Sets this bossbar's progress.- Parameters:
progress
- Bossbar's progress (0.0 - 1.0)
-
isHidden
public abstract boolean isHidden()Checks if this bossbar is hidden.- Returns:
- Whether this bossbar is hidden
-
setHidden
public abstract void setHidden(boolean hidden) Sets if this bossbar should be hidden.- Parameters:
hidden
- Whether this bossbar should be hidden
-
unregister
public abstract void unregister()Unregisters this bossbar.
-