Class Color

java.lang.Object
com.mingcraft.minglib.colors.Color

public class Color extends Object
Mingcraft color API

Version 1.0.0
- Add String colored Method
- Add String uncolored Method
- Add defined hex color

Version 1.0.1
- Add log color

  • Constructor Details

    • Color

      public Color()
  • Method Details

    • colored

      public static String colored(String message)
      Add hex color to String
      Parameters:
      message - String with hex code
      Returns:
      Colored String
    • colored

      public static List<String> colored(String... messages)
      Add hex color to String[]
      Parameters:
      messages - String[] with hex code
      Returns:
      Colored String List
    • colored

      public static List<String> colored(Collection<String> messages)
      Add hex color to String Collection
      Parameters:
      messages - String Collection with hex code
      Returns:
      Colored String List
    • uncolored

      public static String uncolored(String message)
      Remove hex color from String
      Parameters:
      message - Colored String
      Returns:
      Uncolored String
    • uncolored

      public static List<String> uncolored(String... messages)
      Remove hex color from String[]
      Parameters:
      messages - Colored String[]
      Returns:
      Uncolored String List
    • uncolored

      public static List<String> uncolored(Collection<String> messages)
      Remove hex color from String Collection
      Parameters:
      messages - Colored String Collection
      Returns:
      Uncolored String List