Enum Class DyeColor

All Implemented Interfaces:
Serializable, Comparable<DyeColor>, Constable, IStringSerializable

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

    • WHITE

      public static final DyeColor WHITE
    • ORANGE

      public static final DyeColor ORANGE

      public static final DyeColor MAGENTA

      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

      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
  • Field Details

    • BY_ID

      private static final DyeColor[] BY_ID

      private static final it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<DyeColor> BY_FIREWORK_COLOR
    • id

      private final int id
    • name

      private final String name
    • color

      private final MaterialColor color
    • textureDiffuseColor

      private final int textureDiffuseColor
    • textureDiffuseColorBGR

      private final int textureDiffuseColorBGR
    • textureDiffuseColors

      private final float[] textureDiffuseColors
    • fireworkColor

      private final int fireworkColor
    • tag

      private final Tags.IOptionalNamedTag<Item> tag
    • textColor

      private final int textColor
  • Constructor Details

    • DyeColor

      private DyeColor(int p_i50049_3_, String p_i50049_4_, int p_i50049_5_, MaterialColor p_i50049_6_, int p_i50049_7_, int p_i50049_8_)
  • Method Details

    • values

      public static DyeColor[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public int getId()
    • getName

      public String getName()
    • getTextureDiffuseColors

      public float[] getTextureDiffuseColors()
    • getMaterialColor

      public MaterialColor getMaterialColor()
    • getFireworkColor

      public int getFireworkColor()
    • getTextColor

      public int getTextColor()
    • byId

      public static DyeColor byId(int p_196056_0_)
    • byName

      public static DyeColor byName(String p_204271_0_, DyeColor p_204271_1_)
    • byFireworkColor

      @Nullable public static DyeColor byFireworkColor(int p_196058_0_)
    • toString

      public String toString()
      toString in class Enum<DyeColor>
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface IStringSerializable
    • getColorValue

      public int getColorValue()
    • getTag

      public Tags.IOptionalNamedTag<Item> getTag()
    • getColor

      @Nullable public static DyeColor getColor(ItemStack stack)