java.lang.Object
top.redstarmc.plugin.velocitytitle.velocity.util.TextSer

public final class TextSer extends Object

文本序列号器

  • 构造器详细资料

    • TextSer

      public TextSer()
  • 方法详细资料

    • parseSectionColorCode

      public static net.kyori.adventure.text.Component parseSectionColorCode(String input)
    • 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)