Class StringUT

java.lang.Object
studio.magemonkey.codex.util.StringUT

public class StringUT extends Object
  • Field Details

    • HEX_PATTERN

      public static final Pattern HEX_PATTERN
  • Constructor Details

    • StringUT

      public StringUT()
  • Method Details

    • oneSpace

      @NotNull public static String oneSpace(@NotNull String str)
    • colorSensitiveStrip

      @NotNull public static String colorSensitiveStrip(@NotNull String str)
    • noSpace

      @NotNull public static String noSpace(@NotNull String str)
    • color

      @NotNull public static String color(@Nullable String str)
    • color

      @NotNull public static StringBuilder color(@NotNull StringBuilder str)
    • colorFix

      @NotNull public static String colorFix(@NotNull String str)
      Removes multiple color codes that are 'color of color'. Example: '&a&b&cText' -> '&cText'.
      Parameters:
      str - String to fix.
      Returns:
      A string with a proper color codes formatting.
    • colorHex

      @NotNull public static String colorHex(@NotNull String str)
    • colorHexRaw

      @NotNull public static String colorHexRaw(@NotNull String str)
    • colorRaw

      @NotNull public static String colorRaw(@NotNull String str)
    • colorOff

      @NotNull public static String colorOff(@NotNull String str)
    • color

      @NotNull public static List<String> color(@NotNull List<String> list)
    • color

      @NotNull public static Set<String> color(@NotNull Set<String> list)
    • replace

      @NotNull public static List<String> replace(@NotNull String placeholder, List<String> r, String... orig)
    • replace

      @NotNull public static List<String> replace(@NotNull List<String> orig, @NotNull String placeholder, List<String> r)
    • replace

      @NotNull public static List<String> replace(@NotNull List<String> orig, @NotNull String placeholder, String r)
    • getDouble

      public static double getDouble(@NotNull String input, double def)
    • getDouble

      public static double getDouble(@NotNull String input, double def, boolean allowNega)
    • getInteger

      public static int getInteger(@NotNull String input, int def)
    • getInteger

      public static int getInteger(@NotNull String input, int def, boolean nega)
    • getIntArray

      public static int[] getIntArray(@NotNull String str)
    • capitalizeFully

      @NotNull public static String capitalizeFully(@NotNull String str)
    • capitalizeFirstLetter

      @NotNull public static String capitalizeFirstLetter(@NotNull String original)
    • getByFirstLetters

      @NotNull public static List<String> getByFirstLetters(@NotNull String arg, @NotNull List<String> source)
    • extractCommandName

      @NotNull public static String extractCommandName(@NotNull String cmd)
    • isCustomBoolean

      public static boolean isCustomBoolean(@NotNull String str)
    • parseCustomBoolean

      public static boolean parseCustomBoolean(@NotNull String str)
    • c

      @NotNull public static String c(@NotNull String s)
    • d

      @NotNull public static String d(@NotNull String s)
    • getColor

      @NotNull public static String getColor(String str)
    • wrap

      public static List<String> wrap(String value, int maxLength)
    • wrap

      public static List<String> wrap(List<String> value, int maxLength)
    • parseJson

      public static net.md_5.bungee.api.chat.BaseComponent parseJson(String rawJson)