Enum Class ColorEncoding

java.lang.Object
java.lang.Enum<ColorEncoding>
dev.lukebemish.dynamicassetgenerator.api.colors.ColorEncoding
All Implemented Interfaces:
Serializable, Comparable<ColorEncoding>, Constable, net.minecraft.util.StringRepresentable

public enum ColorEncoding extends Enum<ColorEncoding> implements net.minecraft.util.StringRepresentable
Represents different types of color encodings, each with conversions to and from ABGR32, the format used by a NativeImage. Meant to be used to represent encoded colors in data.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static ColorEncoding[] 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 ColorEncoding 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 @NonNull String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable