Package net.minestom.server.map
Enum Class MapColors
- All Implemented Interfaces:
Serializable
,Comparable<MapColors>
,Constable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
How does Minestom compute RGB to MapColor transitions?static enum
static class
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbyte
Returns the color index to use on a mapint
blue()
static MapColors.PreciseMapColor
closestColor
(int argb) int
green()
byte
Returns the color index with RGB multiplied by 0.53, to use on a mapbyte
Returns the color index with RGB multiplied by 0.71, to use on a mapbyte
Returns the color index with RGB multiplied by 0.86, to use on a mapint
red()
static MapColors
Returns the enum constant of this class with the specified name.static MapColors[]
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
-
-
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
-
multiply53
public byte multiply53()Returns the color index with RGB multiplied by 0.53, to use on a map -
multiply86
public byte multiply86()Returns the color index with RGB multiplied by 0.86, to use on a map -
multiply71
public byte multiply71()Returns the color index with RGB multiplied by 0.71, to use on a map -
baseColor
public byte baseColor()Returns the color index to use on a map -
red
public int red() -
green
public int green() -
blue
public int blue() -
closestColor
-