Package net.jeqo.bloons.colors
Class Color
java.lang.Object
net.jeqo.bloons.colors.Color
A class to convert messages with hex codes, and hex strings to Bukkit colors
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Color
public Color()
-
-
Method Details
-
fromHex
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
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
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
-