类 TextSer
java.lang.Object
top.redstarmc.plugin.velocitytitle.velocity.util.TextSer
文本序列号器
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static @NotNull net.kyori.adventure.text.Component将 legacy 格式的字符串转为现代的Component消息组件 附加 {} 转义static net.kyori.adventure.text.ComponentparseSectionColorCode(String input) static voidsendComponentList(@NotNull com.velocitypowered.api.command.CommandSource source, @NotNull List<net.kyori.adventure.text.Component> components) static @NotNull List<net.kyori.adventure.text.Component> toComponentList(String @NotNull ... messages) 将许多 legacy 格式的字符串 转为现代的Component消息组件列表
-
构造器详细资料
-
TextSer
public TextSer()
-
-
方法详细资料
-
parseSectionColorCode
-
legToCom
@NotNull public static @NotNull net.kyori.adventure.text.Component legToCom(String text, Object... args) 将 legacy 格式的字符串转为现代的Component消息组件 附加 {} 转义- 参数:
text- legacy 格式的字符串- 返回:
Component组件
-
toComponentList
@NotNull public static @NotNull List<net.kyori.adventure.text.Component> toComponentList(String @NotNull ... messages) 将许多 legacy 格式的字符串 转为现代的Component消息组件列表- 参数:
messages- legacy 格式的字符串- 返回:
List无效输入:'<'Component>
-
sendComponentList
public static void sendComponentList(@NotNull @NotNull com.velocitypowered.api.command.CommandSource source, @NotNull @NotNull List<net.kyori.adventure.text.Component> components)
-