Class ColorCode


  • public class ColorCode
    extends Object
    • Constructor Detail

      • ColorCode

        public ColorCode()
    • Method Detail

      • initMap

        protected static void initMap()
        Inits the color code map
      • from

        public static String from​(String text)
        Reformats a text (changes §- color codes to &-color codes)
        Parameters:
        text - The text to be reformatted
        Returns:
        The reformatted text
      • to

        public static String to​(String text)
        Reformats a text (changes &-color codes to §-color codes)
        Parameters:
        text - The text to be reformatted
        Returns:
        The reformatted text