Package org.sgrewritten.stargate.colors
Class ColorNameInterpreter
java.lang.Object
org.sgrewritten.stargate.colors.ColorNameInterpreter
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.md_5.bungee.api.ChatColor
Determine a possible color based out of a string Accepts: CSS color codes, DyeColors, ChatColors, java.awt.Colors, hex, rgb, rgba, hsbstatic net.md_5.bungee.api.ChatColor
getDefaultPointerColor
(String defaultString) static net.md_5.bungee.api.ChatColor
getDefaultTextColor
(String defaultString)
-
Method Details
-
getDefaultPointerColor
- Parameters:
defaultString
-A string representation of the default color
- Returns:
The resulting color from the string representation
-
getDefaultTextColor
- Parameters:
defaultString
-A string representation of the default color
- Returns:
The default color based on the string representation
-
getColor
Determine a possible color based out of a string Accepts: CSS color codes, DyeColors, ChatColors, java.awt.Colors, hex, rgb, rgba, hsb- Parameters:
color
-A valid color string
- Returns:
A color
-