Class ContentUtils

java.lang.Object
dev.selena.luacore.utils.text.ContentUtils
Direct Known Subclasses:
LuaMessageUtils

public class ContentUtils extends Object
Used for message content manipulation
  • Constructor Details

    • ContentUtils

      public ContentUtils()
  • Method Details

    • capsFirst

      public static String capsFirst(String content)
      Used for making the first Letter of each word caps
      Parameters:
      content - The String you want to capitalize
      Returns:
      The formatted string content
    • color

      public static String color(String message)
      Used for coloring string using Iridium
      Parameters:
      message - The string content you want to color
      Returns:
      The newly colored string
    • colorList

      public static List<String> colorList(List<String> content)
      Colors a List using Iridium
      Parameters:
      content - The String List content
      Returns:
      The colored String List
    • colorArray

      public static String[] colorArray(Object[] content)
      Colors an array using Iridium
      Parameters:
      content - The Object array content
      Returns:
      The colored String array
    • colorArray

      public static String[] colorArray(List<Objects> content)
      Colors a List using Iridium then convert to a String array
      Parameters:
      content - The Object List content
      Returns:
      The colored String array