java.lang.Object
net.joseplay.allianceutils.api.scoreboard.entities.Sidebar
net.joseplay.allianceutils.api.scoreboard.entities.BukkitSidebar

public class BukkitSidebar extends Sidebar
  • Field Summary

    Fields inherited from class net.joseplay.allianceutils.api.scoreboard.entities.Sidebar

    player
  • Constructor Summary

    Constructors
    Constructor
    Description
    BukkitSidebar(org.bukkit.entity.Player player, String title)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears all lines from the sidebar without removing it.
    void
    Fully removes the sidebar from the player.
    void
    removeLine(int line)
    Removes a specific line from the sidebar.
    void
    setLine(int line, String text)
    Sets or updates a line at a specific position.
    void
    Updates the sidebar title.

    Methods inherited from class net.joseplay.allianceutils.api.scoreboard.entities.Sidebar

    create, setDefaultSB

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BukkitSidebar

      public BukkitSidebar(org.bukkit.entity.Player player, String title)
  • Method Details

    • setTitle

      public void setTitle(String title)
      Description copied from class: Sidebar
      Updates the sidebar title.
      Specified by:
      setTitle in class Sidebar
      Parameters:
      title - new title value
    • setLine

      public void setLine(int line, String text)
      Description copied from class: Sidebar
      Sets or updates a line at a specific position.
      Specified by:
      setLine in class Sidebar
      Parameters:
      line - line index (position)
      text - content to display
    • remove

      public void remove()
      Description copied from class: Sidebar
      Fully removes the sidebar from the player.

      This should clean all resources and restore previous state if necessary.

      Specified by:
      remove in class Sidebar
    • clear

      public void clear()
      Description copied from class: Sidebar
      Clears all lines from the sidebar without removing it.
      Specified by:
      clear in class Sidebar
    • removeLine

      public void removeLine(int line)
      Description copied from class: Sidebar
      Removes a specific line from the sidebar.
      Specified by:
      removeLine in class Sidebar
      Parameters:
      line - line index to remove