Enum Class ColorType

java.lang.Object
java.lang.Enum<ColorType>
me.andreasmelone.glowingeyes.client.util.color.ColorType
All Implemented Interfaces:
Serializable, Comparable<ColorType>, Constable

public enum ColorType extends Enum<ColorType>
  • Enum Constant Details

    • RED

      public static final ColorType RED
    • GREEN

      public static final ColorType GREEN
    • BLUE

      public static final ColorType BLUE
    • HEX

      public static final ColorType HEX
    • HUE

      public static final ColorType HUE
    • SATURATION

      public static final ColorType SATURATION
    • BRIGHTNESS

      public static final ColorType BRIGHTNESS
  • Method Details

    • values

      public static ColorType[] 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 ColorType 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
    • get

      public String get(Color color)
    • parseAndUpdate

      public Color parseAndUpdate(Color color, String input)
    • update

      public Color update(Color color, int value)
    • parse

      public int parse(String input) throws NumberFormatException
      Throws:
      NumberFormatException