Enum Class EnumColour

java.lang.Object
java.lang.Enum<EnumColour>
codechicken.lib.colour.EnumColour
All Implemented Interfaces:
Serializable, Comparable<EnumColour>, Constable, net.minecraft.util.StringRepresentable

public enum EnumColour extends Enum<EnumColour> implements net.minecraft.util.StringRepresentable
Created by covers1624 on 16/09/2016.
  • Enum Constant Details

  • Method Details

    • values

      public static EnumColour[] 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 EnumColour 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
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable
    • getDyeTagName

      public net.minecraft.resources.ResourceLocation getDyeTagName()
    • getWoolTagName

      public net.minecraft.resources.ResourceLocation getWoolTagName()
    • getUnlocalizedName

      public String getUnlocalizedName()
    • getLocalizedName

      public String getLocalizedName()
    • getWoolMeta

      public int getWoolMeta()
    • getDyeMeta

      public int getDyeMeta()
    • rgba

      public int rgba()
    • rgba

      public int rgba(int alpha)
    • argb

      public int argb()
    • argb

      public int argb(int alpha)
    • rgb

      public int rgb()
    • rF

      public float rF()
    • gF

      public float gF()
    • bF

      public float bF()
    • getColour

      public ColourRGBA getColour()
    • getColour

      public ColourRGBA getColour(int alpha)
    • mix

      public EnumColour mix(EnumColour b)
    • mix

      public static EnumColour mix(EnumColour a, EnumColour b)
    • fromWoolMeta

      public static EnumColour fromWoolMeta(int id)
    • fromDyeMeta

      public static EnumColour fromDyeMeta(int id)
    • fromDyeTag

      public static EnumColour fromDyeTag(net.minecraft.resources.ResourceLocation tag)
    • fromWoolTag

      public static EnumColour fromWoolTag(net.minecraft.resources.ResourceLocation tag)
    • fromDyeStack

      public static EnumColour fromDyeStack(net.minecraft.world.item.ItemStack stack)
    • fromWoolStack

      public static EnumColour fromWoolStack(net.minecraft.world.item.ItemStack stack)
    • fromName

      public static EnumColour fromName(String name)