Enum DyeColor

    • Field Detail

      • BY_ID

        private static final DyeColor[] BY_ID
      • BY_FIREWORK_COLOR

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

        private final int id
      • name

        private final java.lang.String name
      • textureDiffuseColor

        private final int textureDiffuseColor
      • textureDiffuseColorBGR

        private final int textureDiffuseColorBGR
      • textureDiffuseColors

        private final float[] textureDiffuseColors
      • fireworkColor

        private final int fireworkColor
      • textColor

        private final int textColor
    • Constructor Detail

      • DyeColor

        private DyeColor​(int p_i50049_3_,
                         java.lang.String p_i50049_4_,
                         int p_i50049_5_,
                         MaterialColor p_i50049_6_,
                         int p_i50049_7_,
                         int p_i50049_8_)
    • Method Detail

      • values

        public static DyeColor[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DyeColor c : DyeColor.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DyeColor valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getId

        public int getId()
      • getName

        public java.lang.String getName()
      • getTextureDiffuseColors

        public float[] getTextureDiffuseColors()
      • getFireworkColor

        public int getFireworkColor()
      • getTextColor

        public int getTextColor()
      • byId

        public static DyeColor byId​(int p_196056_0_)
      • byName

        public static DyeColor byName​(java.lang.String p_204271_0_,
                                      DyeColor p_204271_1_)
      • byFireworkColor

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<DyeColor>
      • getColorValue

        public int getColorValue()