Color

public final class Color implements ConfigurationSerializable

A container for color palette. This class is immutable; the set methods return new color. The color names listed as fields are HTML4 standards, but subject to change.

Properties

Link copied to clipboard
public final static Color AQUA
Aqua, or (0x00,0xFF,0xFF) in (R,G,B)
Link copied to clipboard
public final static Color BLACK
Black, or (0x00,0x00,0x00) in (R,G,B)
Link copied to clipboard
public final static Color BLUE
Blue, or (0x00,0x00,0xFF) in (R,G,B)
Link copied to clipboard
public final static Color FUCHSIA
Fuchsia, or (0xFF,0x00,0xFF) in (R,G,B)
Link copied to clipboard
public final static Color GRAY
Gray, or (0x80,0x80,0x80) in (R,G,B)
Link copied to clipboard
public final static Color GREEN
Green, or (0x00,0x80,0x00) in (R,G,B)
Link copied to clipboard
public final static Color LIME
Lime, or (0x00,0xFF,0x00) in (R,G,B)
Link copied to clipboard
public final static Color MAROON
Maroon, or (0x80,0x00,0x00) in (R,G,B)
Link copied to clipboard
public final static Color NAVY
Navy, or (0x00,0x00,0x80) in (R,G,B)
Link copied to clipboard
public final static Color OLIVE
Olive, or (0x80,0x80,0x00) in (R,G,B)
Link copied to clipboard
public final static Color ORANGE
Orange, or (0xFF,0xA5,0x00) in (R,G,B)
Link copied to clipboard
public final static Color PURPLE
Purple, or (0x80,0x00,0x80) in (R,G,B)
Link copied to clipboard
public final static Color RED
Red, or (0xFF,0x00,0x00) in (R,G,B)
Link copied to clipboard
public final static Color SILVER
Silver, or (0xC0,0xC0,0xC0) in (R,G,B)
Link copied to clipboard
public final static Color TEAL
Teal, or (0x00,0x80,0x80) in (R,G,B)
Link copied to clipboard
public final static Color WHITE
White, or (0xFF,0xFF,0xFF) in (R,G,B)
Link copied to clipboard
public final static Color YELLOW
Yellow, or (0xFF,0xFF,0x00) in (R,G,B)

Functions

Link copied to clipboard
public int asBGR()
Link copied to clipboard
public int asRGB()
Link copied to clipboard
public static Color deserialize(Map<String, Object> map)
Link copied to clipboard
public boolean equals(Object o)
Link copied to clipboard
public static Color fromBGR(int bgr)
Creates new color object from an integer that contains the blue, green, and red bytes in the lowest order 24 bits.
public static Color fromBGR(int blue, int green, int red)
Creates new Color object from blue, green, and red
Link copied to clipboard
public static Color fromRGB(int rgb)
Creates new color object from an integer that contains the red, green, and blue bytes in the lowest order 24 bits.
public static Color fromRGB(int red, int green, int blue)
Creates new Color object from red, green, and blue
Link copied to clipboard
public int getBlue()
Gets the blue component
Link copied to clipboard
public int getGreen()
Gets the green component
Link copied to clipboard
public int getRed()
Gets the red component
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public Color mixColors(Array<Color> colors)
Creates new color with its RGB components changed as if it was dyed with the colors passed in, replicating vanilla workbench dyeing
Link copied to clipboard
public Color mixDyes(Array<DyeColor> colors)
Creates new color with its RGB components changed as if it was dyed with the colors passed in, replicating vanilla workbench dyeing
Link copied to clipboard
Creates getClassById Map representation of this class.
Link copied to clipboard
public Color setBlue(int blue)
Creates new Color object with specified component
Link copied to clipboard
public Color setGreen(int green)
Creates new Color object with specified component
Link copied to clipboard
public Color setRed(int red)
Creates new Color object with specified component
Link copied to clipboard
public String toString()