Class TextUtil

java.lang.Object
dev.kitteh.factions.util.TextUtil

public class TextUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getLegacyString(net.kyori.adventure.text.format.TextColor color)
     
    static String
    getMaterialName(org.bukkit.Material material)
     
    static String
    Deprecated, for removal: This API element is subject to removal in a future version.
    static String
    parse(String str, Object... args)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static String
    repeat(String s, int times)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static net.kyori.adventure.text.Component
    titleize(String string)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static net.kyori.adventure.text.Component
    titleize(net.kyori.adventure.text.Component title)
     
    static net.kyori.adventure.text.Component
    titleize(net.kyori.adventure.text.Component title, @Nullable net.kyori.adventure.text.minimessage.Context ctx)
     
    static String
    Deprecated, for removal: This API element is subject to removal in a future version.
    static String
     

    Methods inherited from class java.lang.Object

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

    • getLegacyString

      @Obsolete public static String getLegacyString(net.kyori.adventure.text.format.TextColor color)
    • parse

      @Obsolete @Deprecated(forRemoval=true, since="4.3.0") public static String parse(String str, Object... args)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • parse

      @Obsolete @Deprecated(forRemoval=true, since="4.3.0") public static String parse(String str)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • upperCaseFirst

      public static String upperCaseFirst(String string)
    • repeat

      @Obsolete @Deprecated(forRemoval=true, since="4.3.0") public static String repeat(String s, int times)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getMaterialName

      public static String getMaterialName(org.bukkit.Material material)
    • titleize

      @AvailableSince("4.3.0") public static net.kyori.adventure.text.Component titleize(net.kyori.adventure.text.Component title, @Nullable net.kyori.adventure.text.minimessage.Context ctx)
    • titleize

      @AvailableSince("4.3.0") public static net.kyori.adventure.text.Component titleize(net.kyori.adventure.text.Component title)
    • titleizeLegacy

      @Obsolete @Deprecated(forRemoval=true, since="4.3.0") public static String titleizeLegacy(String str)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • titleize

      @Obsolete @Deprecated(forRemoval=true, since="4.3.0") public static net.kyori.adventure.text.Component titleize(String string)
      Deprecated, for removal: This API element is subject to removal in a future version.