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

public enum Channel extends Enum<Channel> implements net.minecraft.util.StringRepresentable
Represents a channel of a color, and how a pointwise operator to retrieve that color from an ARGB32 encoded color.
  • Enum Constant Details

    • RED

      public static final Channel RED
    • GREEN

      public static final Channel GREEN
    • BLUE

      public static final Channel BLUE
    • ALPHA

      public static final Channel ALPHA
    • CIELAB_LIGHTNESS

      public static final Channel CIELAB_LIGHTNESS
    • CIELAB_A

      public static final Channel CIELAB_A
    • CIELAB_B

      public static final Channel CIELAB_B
    • HSL_LIGHTNESS

      public static final Channel HSL_LIGHTNESS
    • HSL_SATURATION

      public static final Channel HSL_SATURATION
    • HSL_HUE

      public static final Channel HSL_HUE
    • HSV_VALUE

      public static final Channel HSV_VALUE
    • HSV_SATURATION

      public static final Channel HSV_SATURATION
    • HSV_HUE

      public static final Channel HSV_HUE
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<Channel> CODEC
  • Method Details

    • values

      public static Channel[] 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 Channel 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
    • makeOperation

      public PointwiseOperation.Unary<Integer> makeOperation()
      Returns:
      a new operation, with a fresh cache, that extracts this channel from an ARGB32 color.
    • getSerializedName

      public @NonNull String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable