Interface NumberFormat

All Known Implementing Classes:
NumberFormat.Blank, NumberFormat.Fixed, NumberFormat.Styled

public sealed interface NumberFormat permits NumberFormat.Blank, NumberFormat.Styled, NumberFormat.Fixed
The number format of scoreboards.
  • Method Details

    • blank

      @NotNull static @NotNull NumberFormat blank()
      Gets the blank number format instance.
      Returns:
      the blank instance
      Since:
      1.0.0
    • styled

      @NotNull static @NotNull NumberFormat styled(@NotNull @NotNull Style style)
      Creates a new styled number format.
      Parameters:
      style - the style of the format
      Returns:
      the newly created number format
      Since:
      1.0.0
    • styled

      @NotNull static @NotNull NumberFormat styled(@NotNull @NotNull StyleBuilderApplicable... applicable)
      Creates a new styled number format.
      Parameters:
      applicable - the style of the format
      Returns:
      the newly created number format
      Since:
      1.0.0
    • fixed

      @NotNull static @NotNull NumberFormat fixed(@NotNull @NotNull Component component)
      Creates a new fixed number format.
      Parameters:
      component - the fixed component
      Returns:
      the newly created number format
      Since:
      1.0.0