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>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S extends net.minecraft.util.StringRepresentable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntFunction<EnumColour> static final net.minecraft.util.StringRepresentable.EnumCodec<EnumColour> static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, EnumColour> 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 @Nullable EnumColourfromDyeStack(net.minecraft.world.item.ItemStack stack) static @Nullable EnumColourfromDyeTag(net.minecraft.resources.ResourceLocation tag) static @Nullable EnumColourstatic EnumColourfromWoolMeta(int id) static @Nullable EnumColourfromWoolStack(net.minecraft.world.item.ItemStack stack) static @Nullable EnumColourfromWoolTag(net.minecraft.resources.ResourceLocation tag) getColour(int alpha) intnet.minecraft.resources.ResourceLocationintnet.minecraft.resources.ResourceLocationfloatgF()@Nullable EnumColourmix(EnumColour b) static @Nullable 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
-
-
Field Details
-
CODEC
-
BY_ID
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,EnumColour> STREAM_CODEC
-
-
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
@Nullable public static @Nullable EnumColour fromDyeTag(net.minecraft.resources.ResourceLocation tag) -
fromWoolTag
@Nullable public static @Nullable EnumColour fromWoolTag(net.minecraft.resources.ResourceLocation tag) -
fromDyeStack
-
fromWoolStack
@Nullable public static @Nullable EnumColour fromWoolStack(net.minecraft.world.item.ItemStack stack) -
fromName
-