Package codechicken.lib.colour
Enum Class EnumColour
- All Implemented Interfaces:
Serializable,Comparable<EnumColour>,Constable,net.minecraft.util.StringRepresentable
Created by covers1624 on 16/09/2016.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
net.minecraft.util.StringRepresentable.EnumCodec<E extends Enum<E> & net.minecraft.util.StringRepresentable> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Method Summary
Modifier and TypeMethodDescriptionintargb()intargb(int alpha) floatbF()static EnumColourfromDyeMeta(int id) static EnumColourfromDyeStack(net.minecraft.world.item.ItemStack stack) static EnumColourfromDyeTag(net.minecraft.resources.ResourceLocation tag) static EnumColourstatic EnumColourfromWoolMeta(int id) static EnumColourfromWoolStack(net.minecraft.world.item.ItemStack stack) static EnumColourfromWoolTag(net.minecraft.resources.ResourceLocation tag) getColour(int alpha) intnet.minecraft.resources.ResourceLocationintnet.minecraft.resources.ResourceLocationfloatgF()mix(EnumColour b) static EnumColourmix(EnumColour a, EnumColour b) floatrF()intrgb()intrgba()intrgba(int alpha) static EnumColourReturns the enum constant of this class with the specified name.static EnumColour[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WHITE
-
ORANGE
-
MAGENTA
-
LIGHT_BLUE
-
YELLOW
-
LIME
-
PINK
-
GRAY
-
LIGHT_GRAY
-
CYAN
-
PURPLE
-
BLUE
-
BROWN
-
GREEN
-
RED
-
BLACK
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getSerializedName
- Specified by:
getSerializedNamein interfacenet.minecraft.util.StringRepresentable
-
getDyeTagName
public net.minecraft.resources.ResourceLocation getDyeTagName() -
getWoolTagName
public net.minecraft.resources.ResourceLocation getWoolTagName() -
getUnlocalizedName
-
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
-
getColour
-
mix
-
mix
-
fromWoolMeta
-
fromDyeMeta
-
fromDyeTag
-
fromWoolTag
-
fromDyeStack
-
fromWoolStack
-
fromName
-