Class ComponentUtils

java.lang.Object
studio.magemonkey.codex.legacy.utils.ComponentUtils

public final class ComponentUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canBeLegacy(net.md_5.bungee.api.chat.BaseComponent component)
     
    static boolean
    canBeLegacy(net.md_5.bungee.api.chat.BaseComponent[] component)
     
    static net.md_5.bungee.api.chat.ClickEvent
    duplicate(net.md_5.bungee.api.chat.ClickEvent this_)
     
    static net.md_5.bungee.api.chat.HoverEvent
    duplicate(net.md_5.bungee.api.chat.HoverEvent this_)
     
    static net.md_5.bungee.api.chat.BaseComponent[]
     
    static boolean
    isEmpty(net.md_5.bungee.api.chat.BaseComponent component)
     
    static net.md_5.bungee.api.chat.BaseComponent[]
    parse(String json)
     
    static int
    replace(net.md_5.bungee.api.chat.BaseComponent this_, String text, String repl)
     
    static int
    replace(net.md_5.bungee.api.chat.BaseComponent this_, String text, String repl, int limit)
     
    static int
    replace(net.md_5.bungee.api.chat.BaseComponent this_, String text, net.md_5.bungee.api.chat.BaseComponent component)
     
    static int
    replace(net.md_5.bungee.api.chat.BaseComponent this_, String text, net.md_5.bungee.api.chat.BaseComponent component, int limit)
     
    static boolean
    replaceOnce(net.md_5.bungee.api.chat.BaseComponent this_, String text, String repl)
     
    static boolean
    replaceOnce(net.md_5.bungee.api.chat.BaseComponent this_, String text, net.md_5.bungee.api.chat.BaseComponent component)
     
    static net.md_5.bungee.api.chat.BaseComponent[]
     
    static net.md_5.bungee.api.chat.BaseComponent[]
    safeParse(String json, boolean color)
     
    static net.md_5.bungee.api.chat.BaseComponent[][]
    safeParseMulti(String[] json, boolean color)
     
    static String
    toLegacyText(net.md_5.bungee.api.chat.BaseComponent this_)
     
    static String
    toLegacyText(net.md_5.bungee.api.chat.BaseComponent[] component)
     
    static String
    toPlainText(net.md_5.bungee.api.chat.BaseComponent[] component)
     
    static String
    toString(net.md_5.bungee.api.chat.BaseComponent components)
     
    static String
    toString(net.md_5.bungee.api.chat.BaseComponent[] components)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • parse

      public static net.md_5.bungee.api.chat.BaseComponent[] parse(String json)
    • isEmpty

      public static boolean isEmpty(net.md_5.bungee.api.chat.BaseComponent component)
    • fromLegacyText

      public static net.md_5.bungee.api.chat.BaseComponent[] fromLegacyText(String message)
    • toString

      public static String toString(net.md_5.bungee.api.chat.BaseComponent[] components)
    • toString

      public static String toString(net.md_5.bungee.api.chat.BaseComponent components)
    • toPlainText

      public static String toPlainText(net.md_5.bungee.api.chat.BaseComponent[] component)
    • toLegacyText

      public static String toLegacyText(net.md_5.bungee.api.chat.BaseComponent[] component)
    • toLegacyText

      public static String toLegacyText(net.md_5.bungee.api.chat.BaseComponent this_)
    • canBeLegacy

      public static boolean canBeLegacy(net.md_5.bungee.api.chat.BaseComponent[] component)
    • canBeLegacy

      public static boolean canBeLegacy(net.md_5.bungee.api.chat.BaseComponent component)
    • safeParse

      public static net.md_5.bungee.api.chat.BaseComponent[] safeParse(String json)
    • safeParse

      public static net.md_5.bungee.api.chat.BaseComponent[] safeParse(String json, boolean color)
    • safeParseMulti

      public static net.md_5.bungee.api.chat.BaseComponent[][] safeParseMulti(String[] json, boolean color)
    • replace

      public static int replace(net.md_5.bungee.api.chat.BaseComponent this_, String text, net.md_5.bungee.api.chat.BaseComponent component, int limit)
    • replace

      public static int replace(net.md_5.bungee.api.chat.BaseComponent this_, String text, net.md_5.bungee.api.chat.BaseComponent component)
    • replaceOnce

      public static boolean replaceOnce(net.md_5.bungee.api.chat.BaseComponent this_, String text, net.md_5.bungee.api.chat.BaseComponent component)
    • replace

      public static int replace(net.md_5.bungee.api.chat.BaseComponent this_, String text, String repl, int limit)
    • replace

      public static int replace(net.md_5.bungee.api.chat.BaseComponent this_, String text, String repl)
    • replaceOnce

      public static boolean replaceOnce(net.md_5.bungee.api.chat.BaseComponent this_, String text, String repl)
    • duplicate

      public static net.md_5.bungee.api.chat.ClickEvent duplicate(net.md_5.bungee.api.chat.ClickEvent this_)
    • duplicate

      public static net.md_5.bungee.api.chat.HoverEvent duplicate(net.md_5.bungee.api.chat.HoverEvent this_)