Enum Class MapColor
- All Implemented Interfaces:
Serializable, Comparable<MapColor>, Constable, RGBLike
The base colors of a map, as the client knows them.
Every block has one of these colors (see MapManager.colorOf(BlockData)); a map pixel is a base
color drawn in one of four shades, see MapPalette. The constants are
declared in network order: Enum.ordinal() is the id the client expects. NONE is
transparent.
- Since:
- 0.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionblue()green()intid()Returns the id the client knows this color by.red()rgb()Returns the color at full brightness, as0xRRGGBB.static MapColorReturns the enum constant of this class with the specified name.static MapColor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
GRASS
-
SAND
-
WOOL
-
FIRE
-
ICE
-
METAL
-
PLANT
-
SNOW
-
CLAY
-
DIRT
-
STONE
-
WATER
-
WOOD
-
QUARTZ
-
COLOR_ORANGE
-
COLOR_MAGENTA
-
COLOR_LIGHT_BLUE
-
COLOR_YELLOW
-
COLOR_LIGHT_GREEN
-
COLOR_PINK
-
COLOR_GRAY
-
COLOR_LIGHT_GRAY
-
COLOR_CYAN
-
COLOR_PURPLE
-
COLOR_BLUE
-
COLOR_BROWN
-
COLOR_GREEN
-
COLOR_RED
-
COLOR_BLACK
-
GOLD
-
DIAMOND
-
LAPIS
-
EMERALD
-
PODZOL
-
NETHER
-
TERRACOTTA_WHITE
-
TERRACOTTA_ORANGE
-
TERRACOTTA_MAGENTA
-
TERRACOTTA_LIGHT_BLUE
-
TERRACOTTA_YELLOW
-
TERRACOTTA_LIGHT_GREEN
-
TERRACOTTA_PINK
-
TERRACOTTA_GRAY
-
TERRACOTTA_LIGHT_GRAY
-
TERRACOTTA_CYAN
-
TERRACOTTA_PURPLE
-
TERRACOTTA_BLUE
-
TERRACOTTA_BROWN
-
TERRACOTTA_GREEN
-
TERRACOTTA_RED
-
TERRACOTTA_BLACK
-
CRIMSON_NYLIUM
-
CRIMSON_STEM
-
CRIMSON_HYPHAE
-
WARPED_NYLIUM
-
WARPED_STEM
-
WARPED_HYPHAE
-
WARPED_WART_BLOCK
-
DEEPSLATE
-
RAW_IRON
-
GLOW_LICHEN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
id
public int id()Returns the id the client knows this color by.- Returns:
- the id the client knows this color by
- Since:
- 0.1.0
-
rgb
-
red
-
green
-
blue
-