Class Sidebar

java.lang.Object
net.minestom.server.scoreboard.Sidebar
All Implemented Interfaces:
Audience, ForwardingAudience, Pointered, PacketGroupingAudience, Scoreboard, Viewable

public class Sidebar extends Object implements Scoreboard
Represents a sidebar which can contain up to 16 Sidebar.ScoreboardLine.

In order to use it you need to create a new instance using the constructor Sidebar(String) and create new lines with createLine(ScoreboardLine). You can then add a Player to the viewing list using addViewer(Player) and remove him later with removeViewer(Player).

Lines can be modified using their respective identifier using updateLineContent(String, Component) and updateLineScore(String, int).