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.
  • Method Details

    • number

      static NumberComponent.Builder number()
      Creates a new number component builder.
    • number

      static NumberComponent number(Number number)
      Creates a new number component with the specified number.
      Parameters:
      number - the number
      Returns:
      the number component
    • number

      static NumberComponent number(Number number, ComponentColor textColor)
      Creates a new number component with the specified number and text color.
      Parameters:
      number - the number
      textColor - the text color
      Returns:
      the number component
    • number

      static NumberComponent number(Number number, TextStyle style)
      Creates a new number component with the specified number and text textStyle.
      Parameters:
      number - the number
      style - the text textStyle
      Returns:
      the number component
    • getNumber

      Number getNumber()
      Returns the number contained in this component.