Class WbsScoreboard

java.lang.Object
wbs.utils.util.WbsScoreboard

public class WbsScoreboard extends Object
Wrapper for Scoreboards, to provide utilities for display and management and abstract the need for Team and Objective management.
  • Constructor Details

  • Method Details

    • getNamespace

      public String getNamespace()
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • setLine

      public void setLine(int i, String line) throws IndexOutOfBoundsException
      Set the line at index i to the given String.
      Parameters:
      i - The line number to set at
      line - The String to show at the line number
      Throws:
      IndexOutOfBoundsException - If the index is below 0, or if the index is greater than size()
    • addLine

      public void addLine(String line)
      Add a line to the bottom of the scoreboard
      Parameters:
      line - The text to show on the board
    • size

      public int size()
    • clear

      public void clear()
    • showToPlayer

      public boolean showToPlayer(org.bukkit.entity.Player player)
      Show this scoreboard to the given player.
      Parameters:
      player - The player to show the scoreboard to
      Returns:
      True if the player's scoreboard changed.
    • isBeingViewedBy

      public boolean isBeingViewedBy(org.bukkit.entity.Player player)