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.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static final record
static final record
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull NumberFormat
blank()
Gets the blank number format instance.static @NotNull NumberFormat
Creates a new fixed number format.static @NotNull NumberFormat
Creates a new styled number format.static @NotNull NumberFormat
styled
(@NotNull StyleBuilderApplicable... applicable) Creates a new styled number format.
-
Method Details
-
blank
Gets the blank number format instance.- Returns:
- the blank instance
- Since:
- 1.0.0
-
styled
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
Creates a new fixed number format.- Parameters:
component
- the fixed component- Returns:
- the newly created number format
- Since:
- 1.0.0
-