Class Sidebar.NumberFormat

java.lang.Object
net.minestom.server.scoreboard.Sidebar.NumberFormat
All Implemented Interfaces:
NetworkBuffer.Writer
Enclosing class:
Sidebar

public static class Sidebar.NumberFormat extends Object implements NetworkBuffer.Writer
  • Constructor Details

  • Method Details

    • write

      public void write(@NotNull @NotNull NetworkBuffer writer)
      Specified by:
      write in interface NetworkBuffer.Writer
    • blank

      @NotNull public static @NotNull Sidebar.NumberFormat blank()
      A number format which has no sidebar score displayed
      Returns:
      a blank number format
    • styled

      @NotNull public static @NotNull Sidebar.NumberFormat styled(@NotNull @NotNull Component style)
      A number format which lets the sidebar scores be styled
      Parameters:
      style - a styled component
    • fixed

      @NotNull public static @NotNull Sidebar.NumberFormat fixed(@NotNull @NotNull Component content)
      A number format which lets the sidebar scores be styled with explicit text
      Parameters:
      content - the fixed component