Interface TextStyle.Setter<T extends TextStyle.Setter<T>>

Type Parameters:
T - the type of the setter
All Known Subinterfaces:
BuildableComponent.Builder<C,B>, ListComponent.Builder, NumberComponent.Builder, TemporalComponent.Builder, TextComponent.Builder, TextStyle.Builder, TranslatableComponent.Builder
Enclosing interface:
TextStyle

public static interface TextStyle.Setter<T extends TextStyle.Setter<T>>
Represents an object that can set text style properties.
  • Method Details

    • setTextColor

      T setTextColor(@Nullable ComponentColor textColor)
      Sets the text color.
      Parameters:
      textColor - the text color
      Returns:
      this setter
    • setBackColor

      T setBackColor(@Nullable ComponentColor backColor)
      Sets the background color.
      Parameters:
      backColor - the background color
      Returns:
      this setter
    • addDecoration

      default T addDecoration(TextDecoration decoration)
      Adds a decoration.
      Parameters:
      decoration - the decoration
      Returns:
      this setter
    • setDecorations

      T setDecorations(Map<TextDecoration,Boolean> decorations)
      Sets the decorations.
      Parameters:
      decorations - the decorations
      Returns:
      this setter
    • setDecoration

      T setDecoration(TextDecoration decoration, TriState state)
      Sets a decoration state. If the state is TriState.UNDEFINED, the decoration is removed.
      Parameters:
      decoration - the decoration
      state - the state
      Returns:
      this setter