BBUScoreboardAdapter

public abstract class BBUScoreboardAdapter

The display adapter for the scoreboards. Uses Paper's modern Score Component API — each line is a score entry with a custom display name, eliminating the old Team prefix/suffix approach and the invisible-character entry trick entirely.

Inheritors

Functions

Link copied to clipboard
public static boolean display(Class<? extends BBUScoreboardAdapter> scoreboard, Array<Player> players)
Display multiple scoreboards at once to a set of players
Link copied to clipboard
public TextComponent getLine(int number)
Get a line from the scoreboard
Link copied to clipboard
public abstract ArrayList<String> getLines(BBUPlayer player)
The lines on the scoreboard to get
Link copied to clipboard
public List<TextComponent> getScoreboardLines()
Get all current displayed lines
Link copied to clipboard
public boolean isVisible()
Link copied to clipboard
public void remove()
Cleanup this instance of the scoreboard
Link copied to clipboard
public void setLine(int number, String line)
Set a specific line on the scoreboard
public void setLine(int number, TextComponent line)
Set a specific line on the scoreboard directly from a component
Link copied to clipboard
public void setTitle(String displayName)
Set the title of the scoreboard on the fly
Link copied to clipboard
public void setVisible(boolean visible)
Sets the scoreboard visibility
Link copied to clipboard
public void update()
Update the scoreboard