HyCodeYourTale
classpublicPriority 1

ColorParseUtil

com.hypixel.hytale.server.core.asset.util.ColorParseUtil

32

Methods

32

Public Methods

0

Fields

1

Constructors

Constants

PatternHEX_ALPHA_COLOR_PATTERN= Pattern.compile("^\\s*#([0-9a-fA-F]{4}){1,2}\\s*$")
PatternHEX_COLOR_PATTERN= Pattern.compile("^\\s*#([0-9a-fA-F]{3}){1,2}\\s*$")
PatternRGBA_COLOR_PATTERN= Pattern.compile("^\\s*rgba\\((\\s*[0-9]{1,3}\\s*,){3}\\s*[0,1](.[0-9]*)?\\s*\\)\\s*$")
PatternRGBA_HEX_COLOR_PATTERN= Pattern.compile("^\\s*rgba\\(\\s*#([0-9a-fA-F]{3}){1,2}\\s*,\\s*[0,1](.[0-9]*)?\\s*\\)\\s*$")
PatternRGB_COLOR_PATTERN= Pattern.compile("^\\s*rgb\\((\\s*[0-9]{1,3}\\s*,){2}\\s*[0-9]{1,3}\\s*\\)\\s*$")

Constructors

public
ColorParseUtil()

Methods

Public Methods (32)

publicstatic
String colorLightToHexString(ColorLight colorLight)
@Nonnull
publicstatic
int colorToARGBInt(Color color)
publicstatic
String colorToHex(java.awt.Color color)
@Nonnull
publicstatic
String colorToHexAlpha(java.awt.Color color)
@Nonnull
publicstatic
String colorToHexAlphaString(ColorAlpha color)
@Nonnull
publicstatic
String colorToHexString(Color color)
@Nonnull
publicstatic
int hexAlphaStringToRGBAInt(String color)
publicstatic
Color hexStringToColor(String color)
@Nonnull
publicstatic
ColorAlpha hexStringToColorAlpha(String color)
@Nonnull
publicstatic
void hexStringToColorLightDirect(ColorLight colorLight, String color)
publicstatic
int hexStringToRGBInt(String color)
publicstatic
Color parseColor(String stringValue)
@Nullable
publicstatic
ColorAlpha parseColorAlpha(String stringValue)
@Nullable
publicstatic
Color readColor(RawJsonReader reader)

throws IOException

@Nullable
publicstatic
ColorAlpha readColorAlpha(RawJsonReader reader)

throws IOException

@Nullable
publicstatic
int readHexAlphaStringToRGBAInt(RawJsonReader reader)

throws IOException

publicstatic
Color readHexStringToColor(RawJsonReader reader)

throws IOException

@Nonnull
publicstatic
ColorAlpha readHexStringToColorAlpha(RawJsonReader reader)

throws IOException

@Nonnull
publicstatic
int readHexStringToRGBInt(RawJsonReader reader)

throws IOException

publicstatic
Color readRgbStringToColor(RawJsonReader reader)

throws IOException

@Nonnull
publicstatic
ColorAlpha readRgbaDecimalStringToColor(RawJsonReader reader)

throws IOException

@Nonnull
publicstatic
ColorAlpha readRgbaDecimalStringToColor(RawJsonReader reader, boolean readStart)

throws IOException

@Nonnull
publicstatic
ColorAlpha readRgbaHexStringToColor(RawJsonReader reader)

throws IOException

@Nonnull
publicstatic
ColorAlpha readRgbaHexStringToColor(RawJsonReader reader, boolean readStart)

throws IOException

@Nonnull
publicstatic
ColorAlpha readRgbaStringToColorAlpha(RawJsonReader reader)

throws IOException

@Nonnull
publicstatic
Color rgbStringToColor(String color)
@Nonnull
publicstatic
ColorAlpha rgbaDecimalStringToColor(String color)
@Nonnull
publicstatic
ColorAlpha rgbaHexStringToColor(String color)
@Nonnull
publicstatic
String toHexAlphaString(byte red, byte green, byte blue, byte alpha)
@Nonnull
publicstatic
String toHexAlphaString(int rgba)
@Nonnull
publicstatic
String toHexString(byte red, byte green, byte blue)
@Nonnull
publicstatic
String toHexString(int rgb)
@Nonnull

Related Classes