Package net.minestom.server.scoreboard
Class Sidebar.ScoreboardLine
java.lang.Object
net.minestom.server.scoreboard.Sidebar.ScoreboardLine
- Enclosing class:
Sidebar
This class is used to create a line for the sidebar.
-
Constructor Summary
ConstructorDescriptionScoreboardLine
(@NotNull String id, @NotNull Component content, int line) ScoreboardLine
(@NotNull String id, @NotNull Component content, int line, @Nullable Sidebar.NumberFormat numberFormat) -
Method Summary
-
Constructor Details
-
ScoreboardLine
-
ScoreboardLine
public ScoreboardLine(@NotNull @NotNull String id, @NotNull @NotNull Component content, int line, @Nullable @Nullable Sidebar.NumberFormat numberFormat)
-
-
Method Details
-
getId
Gets the identifier of the line- Returns:
- the line identifier
-
getContent
Gets the content of the line- Returns:
- The line content
-
getLine
public int getLine()Gets the position of the line- Returns:
- the line position
-