Package me.kzheart.klib.lang
Class RichTextSegment
java.lang.Object
me.kzheart.klib.lang.RichTextSegment
不可变的已渲染文本片段;可选样式访问器保留 Java 平台返回类型。
-
Constructor Summary
ConstructorsConstructorDescriptionRichTextSegment(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) RichTextSegment(String text, me.kzheart.klib.lang.MessageColor color, boolean bold, me.kzheart.klib.lang.TextAction hover, me.kzheart.klib.lang.TextAction click) -
Method Summary
-
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
-
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()
-