类 ComponentStyle

java.lang.Object
cn.afternode.commons.bukkit.message.ComponentStyle

public class ComponentStyle extends Object
  • 构造器详细资料

    • ComponentStyle

      public ComponentStyle()
  • 方法详细资料

    • color

      public net.kyori.adventure.text.format.TextColor color()
      Get current text color
      返回:
      Result
    • color

      public ComponentStyle color(net.kyori.adventure.text.format.TextColor color)
      Set current text color
      参数:
      color - value
      返回:
      this builder
      另请参阅:
      • Style.color(TextColor)
    • color

      public ComponentStyle color(Color color)
      Set current text color from an AWT color
      参数:
      color - value
      返回:
      this builder
      另请参阅:
      • TextColor.color(int)
      • Style.color(TextColor)
    • italic

      public boolean italic()
      Get italic state
      返回:
      state
      另请参阅:
      • TextDecoration.ITALIC
    • italic

      public ComponentStyle italic(boolean italic)
      Set italic state
      参数:
      italic - value
      返回:
      this builder
      另请参阅:
      • TextDecoration.ITALIC
    • bold

      public boolean bold()
      Get bold state
      返回:
      state
      另请参阅:
      • TextDecoration.BOLD
    • bold

      public ComponentStyle bold(boolean bold)
      Set bold state
      参数:
      bold - value
      返回:
      this builder
      另请参阅:
      • TextDecoration.BOLD
    • underline

      public boolean underline()
      Get underlined state
      返回:
      state
      另请参阅:
      • TextDecoration.UNDERLINED
    • underline

      public ComponentStyle underline(boolean underline)
      Set underlined state
      参数:
      underline - value
      返回:
      this builder
      另请参阅:
      • TextDecoration.UNDERLINED
    • strike

      public boolean strike()
      Get strikethrough state
      返回:
      state
      另请参阅:
      • TextDecoration.STRIKETHROUGH
    • strike

      public ComponentStyle strike(boolean strike)
      Set strikethrough state
      参数:
      strike - state
      返回:
      this builder
      另请参阅:
      • TextDecoration.STRIKETHROUGH
    • obfuscated

      public boolean obfuscated()
      Get obfuscated state
      返回:
      state
      另请参阅:
      • TextDecoration.OBFUSCATED
    • obfuscated

      public ComponentStyle obfuscated(boolean obfuscated)
      Set obfuscated state
      参数:
      obfuscated - value
      返回:
      this builder
      另请参阅:
      • TextDecoration.OBFUSCATED
    • build

      public net.kyori.adventure.text.format.Style build()
      Build to Style
      返回:
      result
      另请参阅:
      • Style