类 ComponentStyle
java.lang.Object
cn.afternode.commons.bukkit.message.ComponentStyle
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanbold()Get bold statebold(boolean bold) Set bold statenet.kyori.adventure.text.format.Stylebuild()Build toStylenet.kyori.adventure.text.format.TextColorcolor()Get current text colorSet current text color from an AWT colorcolor(net.kyori.adventure.text.format.TextColor color) Set current text colorbooleanitalic()Get italic stateitalic(boolean italic) Set italic statebooleanGet obfuscated stateobfuscated(boolean obfuscated) Set obfuscated statebooleanstrike()Get strikethrough statestrike(boolean strike) Set strikethrough statebooleanGet underlined stateunderline(boolean underline) Set underlined state
-
构造器详细资料
-
ComponentStyle
public ComponentStyle()
-
-
方法详细资料
-
color
public net.kyori.adventure.text.format.TextColor color()Get current text color- 返回:
- Result
-
color
Set current text color- 参数:
color- value- 返回:
- this builder
- 另请参阅:
-
Style.color(TextColor)
-
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
Set italic state- 参数:
italic- value- 返回:
- this builder
- 另请参阅:
-
TextDecoration.ITALIC
-
bold
public boolean bold()Get bold state- 返回:
- state
- 另请参阅:
-
TextDecoration.BOLD
-
bold
Set bold state- 参数:
bold- value- 返回:
- this builder
- 另请参阅:
-
TextDecoration.BOLD
-
underline
public boolean underline()Get underlined state- 返回:
- state
- 另请参阅:
-
TextDecoration.UNDERLINED
-
underline
Set underlined state- 参数:
underline- value- 返回:
- this builder
- 另请参阅:
-
TextDecoration.UNDERLINED
-
strike
public boolean strike()Get strikethrough state- 返回:
- state
- 另请参阅:
-
TextDecoration.STRIKETHROUGH
-
strike
Set strikethrough state- 参数:
strike- state- 返回:
- this builder
- 另请参阅:
-
TextDecoration.STRIKETHROUGH
-
obfuscated
public boolean obfuscated()Get obfuscated state- 返回:
- state
- 另请参阅:
-
TextDecoration.OBFUSCATED
-
obfuscated
Set obfuscated state- 参数:
obfuscated- value- 返回:
- this builder
- 另请参阅:
-
TextDecoration.OBFUSCATED
-
build
public net.kyori.adventure.text.format.Style build()Build toStyle- 返回:
- result
- 另请参阅:
-
Style
-