Class Color

java.lang.Object
net.jeqo.bloons.colors.Color

public class Color extends Object
A class to convert messages with hex codes, and hex strings to Bukkit colors
  • Constructor Details

    • Color

      public Color()
  • Method Details

    • fromHex

      public static String fromHex(String message)
      Converts a message with hex codes to a Bukkit color
      Parameters:
      message - The message to convert to Bukkit color from hex, type java.lang.String
      Returns:
      The Bukkit color, type org.bukkit.Color
    • isHexCode

      public static boolean isHexCode(String string)
      Checks if a string is a valid hex code
      Parameters:
      string - The string to check the validity of, type java.lang.String
      Returns:
      Whether the string is a valid hex code, type boolean
    • hexToColor

      public static org.bukkit.Color hexToColor(String string)
      Converts a hex string to a Bukkit color
      Parameters:
      string - The hex string to convert, type java.lang.String
      Returns:
      The Bukkit color, type org.bukkit.Color