Package net.minestom.server.color
Enum Class DyeColor
- All Implemented Interfaces:
Serializable
,Comparable<DyeColor>
,Constable
,RGBLike
AUTOGENERATED by DyeColorGenerator
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
blue()
@NotNull Color
color()
@NotNull Color
static @Nullable DyeColor
getValue
(int id) int
green()
int
int
red()
@NotNull Color
static DyeColor
Returns the enum constant of this class with the specified name.static DyeColor[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WHITE
-
ORANGE
-
MAGENTA
-
LIGHT_BLUE
-
YELLOW
-
LIME
-
PINK
-
GRAY
-
LIGHT_GRAY
-
CYAN
-
PURPLE
-
BLUE
-
BROWN
-
GREEN
-
RED
-
BLACK
-
-
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
-
color
-
textColor
-
fireworkColor
-
red
public int red() -
green
public int green() -
blue
public int blue() -
mapColorId
public int mapColorId() -
getValue
-