Class Sidebar.ScoreboardLine

java.lang.Object
net.minestom.server.scoreboard.Sidebar.ScoreboardLine
Enclosing class:
Sidebar

public static class Sidebar.ScoreboardLine extends Object
This class is used to create a line for the sidebar.
  • Constructor Details

    • ScoreboardLine

      public ScoreboardLine(@NotNull @NotNull String id, @NotNull @NotNull Component content, int line)
    • ScoreboardLine

      public ScoreboardLine(@NotNull @NotNull String id, @NotNull @NotNull Component content, int line, @Nullable @Nullable Sidebar.NumberFormat numberFormat)
  • Method Details

    • getId

      @NotNull public @NotNull String getId()
      Gets the identifier of the line
      Returns:
      the line identifier
    • getContent

      @NotNull public @NotNull Component 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