Enum Class DyeColor
- All Implemented Interfaces:
Serializable, Comparable<DyeColor>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBlack, id15.Blue, id11.Brown, id12.Cyan, id9.Gray, id7.Green, id13.Light blue, id3.Light gray, id8.Lime, id5.Magenta, id2.Orange, id1.Pink, id6.Purple, id10.Red, id14.White, id0.Yellow, id4. -
Method Summary
Modifier and TypeMethodDescriptionstatic DyeColorbyId(int id) Returns the colour of an id, white if the id is out of range.Returns the name vanilla gives this colour, as inlight_blue_wool.intid()Returns the id vanilla gives this colour, from0for white to15for black.static DyeColorReturns 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
-
id
public int id()Returns the id vanilla gives this colour, from0for white to15for black.- Returns:
- the id vanilla gives this colour, from
0for white to15for black - Since:
- 0.1.0
-
colorName
Returns the name vanilla gives this colour, as inlight_blue_wool.- Returns:
- the name vanilla gives this colour, as in
light_blue_wool - Since:
- 0.1.0
-
byId
Returns the colour of an id, white if the id is out of range.- Parameters:
id- the id vanilla gives the colour- Returns:
- the colour of an id, white if the id is out of range
- Since:
- 0.1.0
-