Class PlayerBossbar

java.lang.Object
me.remigio07.chatplugin.api.server.bossbar.PlayerBossbar

public abstract class PlayerBossbar extends Object
Represents a ChatPluginServerPlayer's displayed bossbar.
  • Method Details

    • getPlayer

      public ChatPluginServerPlayer getPlayer()
      Gets the player this bossbar is being displayed to.
      Returns:
      Bossbar's player
    • getColor

      public BossbarColorAdapter getColor()
      Gets this bossbar's color.
      Returns:
      Bossbar's color
    • setColor

      public void setColor(BossbarColorAdapter color)
      Sets this bossbar's color.
      Parameters:
      color - Color to set
      Throws:
      UnsupportedOperationException - If this method is called on a reflection bossbar
    • getStyle

      public BossbarStyleAdapter getStyle()
      Gets this bossbar's style.
      Returns:
      Bossbar's style
    • setStyle

      public void setStyle(BossbarStyleAdapter style)
      Sets this bossbar's style.
      Parameters:
      style - Style to set
      Throws:
      UnsupportedOperationException - If this method is called on a reflection bossbar
    • getTitle

      public abstract String getTitle()
      Gets this bossbar's title.
      Returns:
      Bossbar's title
    • setTitle

      public abstract void setTitle(String title)
      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.