Enum Class DyeColor

java.lang.Object
java.lang.Enum<DyeColor>
net.minestom.server.color.DyeColor
All Implemented Interfaces:
Serializable, Comparable<DyeColor>, Constable, RGBLike

public enum DyeColor extends Enum<DyeColor> implements RGBLike
AUTOGENERATED by DyeColorGenerator
  • Enum Constant Details

    • WHITE

      public static final DyeColor WHITE
    • ORANGE

      public static final DyeColor ORANGE
    • MAGENTA

      public static final DyeColor MAGENTA
    • LIGHT_BLUE

      public static final DyeColor LIGHT_BLUE
    • YELLOW

      public static final DyeColor YELLOW
    • LIME

      public static final DyeColor LIME
    • PINK

      public static final DyeColor PINK
    • GRAY

      public static final DyeColor GRAY
    • LIGHT_GRAY

      public static final DyeColor LIGHT_GRAY
    • CYAN

      public static final DyeColor CYAN
    • PURPLE

      public static final DyeColor PURPLE
    • BLUE

      public static final DyeColor BLUE
    • BROWN

      public static final DyeColor BROWN
    • GREEN

      public static final DyeColor GREEN
    • RED

      public static final DyeColor RED
    • BLACK

      public static final DyeColor BLACK
  • 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
    • color

      @NotNull public @NotNull Color color()
    • textColor

      @NotNull public @NotNull Color textColor()
    • fireworkColor

      @NotNull public @NotNull Color fireworkColor()
    • red

      public int red()
      Specified by:
      red in interface RGBLike
    • green

      public int green()
      Specified by:
      green in interface RGBLike
    • blue

      public int blue()
      Specified by:
      blue in interface RGBLike
    • mapColorId

      public int mapColorId()
    • getValue

      @Nullable public static @Nullable DyeColor getValue(int id)