Enum Class DyeColor

java.lang.Object
java.lang.Enum<DyeColor>
fr.fidorial.item.DyeColor
All Implemented Interfaces:
Serializable, Comparable<DyeColor>, Constable

public enum DyeColor extends Enum<DyeColor>
The sixteen colours of dyes, wool and everything dyed, in the order of vanilla's ids.
Since:
0.1.0
  • Enum Constant Details

    • WHITE

      public static final DyeColor WHITE
      White, id 0.
      Since:
      0.1.0
    • ORANGE

      public static final DyeColor ORANGE
      Orange, id 1.
      Since:
      0.1.0
    • MAGENTA

      public static final DyeColor MAGENTA
      Magenta, id 2.
      Since:
      0.1.0
    • LIGHT_BLUE

      public static final DyeColor LIGHT_BLUE
      Light blue, id 3.
      Since:
      0.1.0
    • YELLOW

      public static final DyeColor YELLOW
      Yellow, id 4.
      Since:
      0.1.0
    • LIME

      public static final DyeColor LIME
      Lime, id 5.
      Since:
      0.1.0
    • PINK

      public static final DyeColor PINK
      Pink, id 6.
      Since:
      0.1.0
    • GRAY

      public static final DyeColor GRAY
      Gray, id 7.
      Since:
      0.1.0
    • LIGHT_GRAY

      public static final DyeColor LIGHT_GRAY
      Light gray, id 8.
      Since:
      0.1.0
    • CYAN

      public static final DyeColor CYAN
      Cyan, id 9.
      Since:
      0.1.0
    • PURPLE

      public static final DyeColor PURPLE
      Purple, id 10.
      Since:
      0.1.0
    • BLUE

      public static final DyeColor BLUE
      Blue, id 11.
      Since:
      0.1.0
    • BROWN

      public static final DyeColor BROWN
      Brown, id 12.
      Since:
      0.1.0
    • GREEN

      public static final DyeColor GREEN
      Green, id 13.
      Since:
      0.1.0
    • RED

      public static final DyeColor RED
      Red, id 14.
      Since:
      0.1.0
    • BLACK

      public static final DyeColor BLACK
      Black, id 15.
      Since:
      0.1.0
  • Method Details

    • values

      public static DyeColor[] 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

      public static DyeColor valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • id

      public int id()
      Returns the id vanilla gives this colour, from 0 for white to 15 for black.
      Returns:
      the id vanilla gives this colour, from 0 for white to 15 for black
      Since:
      0.1.0
    • colorName

      public String colorName()
      Returns the name vanilla gives this colour, as in light_blue_wool.
      Returns:
      the name vanilla gives this colour, as in light_blue_wool
      Since:
      0.1.0
    • byId

      public static DyeColor byId(int id)
      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