Module gomint.api
Package io.gomint

Enum ChatColor

    • Enum Constant Detail

      • BLACK

        public static final ChatColor BLACK
        Represents black.
      • DARK_BLUE

        public static final ChatColor DARK_BLUE
        Represents dark blue.
      • DARK_GREEN

        public static final ChatColor DARK_GREEN
        Represents dark green.
      • DARK_AQUA

        public static final ChatColor DARK_AQUA
        Represents dark blue (aqua).
      • DARK_RED

        public static final ChatColor DARK_RED
        Represents dark red.
      • DARK_PURPLE

        public static final ChatColor DARK_PURPLE
        Represents dark purple.
      • GOLD

        public static final ChatColor GOLD
        Represents gold.
      • GRAY

        public static final ChatColor GRAY
        Represents gray.
      • DARK_GRAY

        public static final ChatColor DARK_GRAY
        Represents dark gray.
      • BLUE

        public static final ChatColor BLUE
        Represents blue.
      • GREEN

        public static final ChatColor GREEN
        Represents green.
      • AQUA

        public static final ChatColor AQUA
        Represents aqua.
      • RED

        public static final ChatColor RED
        Represents red.
      • LIGHT_PURPLE

        public static final ChatColor LIGHT_PURPLE
        Represents light purple.
      • YELLOW

        public static final ChatColor YELLOW
        Represents yellow.
      • WHITE

        public static final ChatColor WHITE
        Represents white.
      • MAGIC

        public static final ChatColor MAGIC
        Represents magical characters that change around randomly.
      • BOLD

        public static final ChatColor BOLD
        Makes the text bold.
      • STRIKETHROUGH

        public static final ChatColor STRIKETHROUGH
        Makes a line appear through the text.
      • UNDERLINE

        public static final ChatColor UNDERLINE
        Makes the text appear underlined.
      • ITALIC

        public static final ChatColor ITALIC
        Makes the text italic.
      • RESET

        public static final ChatColor RESET
        Resets all previous chat colors or formats.
    • Method Detail

      • values

        public static ChatColor[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ChatColor c : ChatColor.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ChatColor valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • stripColor

        public static String stripColor​(String input)
        Strips the given message of all color codes
        Parameters:
        input - which should be stripped from all colors
        Returns:
        stripped copy of the input
      • translateAlternateColorCodes

        public static String translateAlternateColorCodes​(char altColorChar,
                                                          String input)
        Translate other char escaped colors into minecraft escaped colors
        Parameters:
        altColorChar - which has been used to escape colors
        input - which should be processed
        Returns:
        minecraft escaped color string