Package net.minestom.server.scoreboard
Class Sidebar.NumberFormat
java.lang.Object
net.minestom.server.scoreboard.Sidebar.NumberFormat
- All Implemented Interfaces:
NetworkBuffer.Writer
- Enclosing class:
Sidebar
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Sidebar.NumberFormat
blank()
A number format which has no sidebar score displayedstatic @NotNull Sidebar.NumberFormat
A number format which lets the sidebar scores be styled with explicit textstatic @NotNull Sidebar.NumberFormat
A number format which lets the sidebar scores be styledvoid
write
(@NotNull NetworkBuffer writer)
-
Constructor Details
-
NumberFormat
-
-
Method Details
-
write
- Specified by:
write
in interfaceNetworkBuffer.Writer
-
blank
A number format which has no sidebar score displayed- Returns:
- a blank number format
-
styled
A number format which lets the sidebar scores be styled- Parameters:
style
- a styled component
-
fixed
A number format which lets the sidebar scores be styled with explicit text- Parameters:
content
- the fixed component
-