Class RichTextSegment

java.lang.Object
me.kzheart.klib.lang.RichTextSegment

public final class RichTextSegment extends Object
不可变的已渲染文本片段;可选样式访问器保留 Java 平台返回类型。
  • Constructor Details

    • RichTextSegment

      public RichTextSegment(String text, me.kzheart.klib.lang.MessageColor color, boolean bold, me.kzheart.klib.lang.TextAction hover, me.kzheart.klib.lang.TextAction click)
    • RichTextSegment

      public RichTextSegment(String text, me.kzheart.klib.lang.MessageColor color, boolean bold, boolean italic, boolean underlined, boolean strikethrough, boolean obfuscated, me.kzheart.klib.lang.TextAction hover, me.kzheart.klib.lang.TextAction click)
  • Method Details

    • plain

      public static RichTextSegment plain(String text)
    • text

      public String text()
    • color

      public me.kzheart.klib.lang.MessageColor color()
    • bold

      public boolean bold()
    • italic

      public boolean italic()
    • underlined

      public boolean underlined()
    • strikethrough

      public boolean strikethrough()
    • obfuscated

      public boolean obfuscated()
    • hover

      public me.kzheart.klib.lang.TextAction hover()
    • click

      public me.kzheart.klib.lang.TextAction click()