Interface NumberComponent
- All Superinterfaces:
Buildable<NumberComponent,,NumberComponent.Builder> BuildableComponent<NumberComponent,,NumberComponent.Builder> Component
public interface NumberComponent
extends BuildableComponent<NumberComponent,NumberComponent.Builder>
A component that displays a number.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for number components. -
Method Summary
Modifier and TypeMethodDescriptionReturns the number contained in this component.static NumberComponent.Buildernumber()Creates a new number component builder.static NumberComponentCreates a new number component with the specified number.static NumberComponentnumber(Number number, ComponentColor textColor) Creates a new number component with the specified number and text color.static NumberComponentCreates a new number component with the specified number and text textStyle.Methods inherited from interface com.xpdustry.distributor.api.component.Component
compress, getTextStyle
-
Method Details
-
number
Creates a new number component builder. -
number
Creates a new number component with the specified number.- Parameters:
number- the number- Returns:
- the number component
-
number
Creates a new number component with the specified number and text color.- Parameters:
number- the numbertextColor- the text color- Returns:
- the number component
-
number
Creates a new number component with the specified number and text textStyle.- Parameters:
number- the numberstyle- the text textStyle- Returns:
- the number component
-
getNumber
Number getNumber()Returns the number contained in this component.
-