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

  • Field Details

    • CODEC

      public static final net.minecraft.util.StringRepresentable.EnumCodec<EnumColour> CODEC
    • BY_ID

      public static final IntFunction<EnumColour> BY_ID
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,EnumColour> STREAM_CODEC
  • 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

      @Nullable public @Nullable EnumColour mix(EnumColour b)
    • mix

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

      public static EnumColour fromWoolMeta(int id)
    • fromDyeMeta

      public static EnumColour fromDyeMeta(int id)
    • 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

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

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

      @Nullable public static @Nullable EnumColour fromName(String name)