Enum Class DyeColor

java.lang.Object
java.lang.Enum<DyeColor>
cn.nukkit.utils.DyeColor
All Implemented Interfaces:
Serializable, Comparable<DyeColor>, Constable

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

    • BLACK

      public static final DyeColor BLACK
    • RED

      public static final DyeColor RED
    • GREEN

      public static final DyeColor GREEN
    • BROWN

      public static final DyeColor BROWN
    • BLUE

      public static final DyeColor BLUE
    • PURPLE

      public static final DyeColor PURPLE
    • CYAN

      public static final DyeColor CYAN
    • LIGHT_GRAY

      public static final DyeColor LIGHT_GRAY
    • GRAY

      public static final DyeColor GRAY
    • PINK

      public static final DyeColor PINK
    • LIME

      public static final DyeColor LIME
    • YELLOW

      public static final DyeColor YELLOW
    • LIGHT_BLUE

      public static final DyeColor LIGHT_BLUE
    • MAGENTA

      public static final DyeColor MAGENTA
    • ORANGE

      public static final DyeColor ORANGE
    • WHITE

      public static final DyeColor WHITE
    • BONE_MEAL

      @PowerNukkitOnly @Since("1.6.0.0-PNX") public static final DyeColor BONE_MEAL
  • 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
    • getColor

      public BlockColor getColor()
    • getSignColor

      public BlockColor getSignColor()
    • getDyeData

      public int getDyeData()
      The minecraft:dye meta from `0-15` that represents the source of a dye. Includes ink_sac, bone_meal, cocoa_beans, and lapis_lazuli.
    • getItemDyeMeta

      @PowerNukkitOnly @Since("1.4.0.0-PN") public int getItemDyeMeta()
      The minecraft: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

      @PowerNukkitOnly @Since("1.4.0.0-PN") public BlockColor getLeatherColor()
    • getWoolData

      public int getWoolData()
    • getName

      public String getName()
    • getDyeName

      public String 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

      public static DyeColor getByWoolData(int woolColorMeta)