Package cn.nukkit.utils
Enum Class DyeColor
- All Implemented Interfaces:
Serializable
,Comparable<DyeColor>
,Constable
-
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 TypeMethodDescriptionstatic DyeColor
getByDyeData
(int dyeColorMeta) static DyeColor
getByWoolData
(int woolColorMeta) getColor()
int
Theminecraft:dye
meta from `0-15` that represents the source of a dye.int
Theminecraft:dye
meta that actually represents the item dye for that color.getName()
int
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
-
BLACK
-
RED
-
GREEN
-
BROWN
-
BLUE
-
PURPLE
-
CYAN
-
LIGHT_GRAY
-
GRAY
-
PINK
-
LIME
-
YELLOW
-
LIGHT_BLUE
-
MAGENTA
-
ORANGE
-
WHITE
-
BONE_MEAL
-
-
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
-
getColor
-
getSignColor
-
getDyeData
public int getDyeData()Theminecraft:dye
meta from `0-15` that represents the source of a dye. Includes ink_sac, bone_meal, cocoa_beans, and lapis_lazuli. -
getItemDyeMeta
Theminecraft:dye
meta that actually represents the item dye for that color. Uses black_dye instead of ink_sac, white_dye instead of bone_meal, and so on. -
getLeatherColor
-
getWoolData
public int getWoolData() -
getName
-
getDyeName
-
getByDyeData
@PowerNukkitDifference(since="1.4.0.0-PN", info="When overflowed, instead of wrapping, the meta will be clamped, accepts the new dye metas") public static DyeColor getByDyeData(int dyeColorMeta) -
getByWoolData
-