Class RandomChatColor


  • public class RandomChatColor
    extends java.lang.Object
    Utilities class to get a random color/format
    • Constructor Summary

      Constructors 
      Constructor Description
      RandomChatColor()  
    • Method Summary

      Modifier and Type Method Description
      static org.bukkit.ChatColor getColor​(org.bukkit.ChatColor... validChatcolors)
      Gets a random ChatColor from the given ChatColors (Black is not a possible outcome because black is hard to read)
      static org.bukkit.ChatColor getFormat​(org.bukkit.ChatColor... chatFormats)
      Get a random ChatColor(Format) from the given ChatColor(Format)s
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RandomChatColor

        public RandomChatColor()
    • Method Detail

      • getColor

        public static org.bukkit.ChatColor getColor​(org.bukkit.ChatColor... validChatcolors)
        Gets a random ChatColor from the given ChatColors (Black is not a possible outcome because black is hard to read)
        Parameters:
        validChatcolors - the valid chatcolors
        Returns:
        color
      • getFormat

        public static org.bukkit.ChatColor getFormat​(org.bukkit.ChatColor... chatFormats)
        Get a random ChatColor(Format) from the given ChatColor(Format)s
        Parameters:
        chatFormats - the chat formats
        Returns:
        format