Class ColorStack.Entry

java.lang.Object
io.github.thecsdev.tcdcommons.api.client.gui.util.ColorStack.Entry
Enclosing class:
ColorStack

public static final class ColorStack.Entry extends Object
Represents an entry in the ColorStack.

Each entry consists of four float values representing the red, green, blue, and alpha channels of a color.

  • Field Details

    • r

      public final float r
      An RGBA color channel value of this ColorStack.Entry.
    • g

      public final float g
      An RGBA color channel value of this ColorStack.Entry.
    • b

      public final float b
      An RGBA color channel value of this ColorStack.Entry.
    • a

      public final float a
      An RGBA color channel value of this ColorStack.Entry.
    • blendMethod

      @Nullable public final @Nullable ColorStack.BlendMethod blendMethod
      The blending method that will be used to blend the color values of this ColorStack.Entry.
    • blendAlpha

      public final boolean blendAlpha
      When set to true, the Alpha channel will blend using the blendMethod.
  • Constructor Details

    • Entry

      public Entry()
    • Entry

      public Entry(float r, float g, float b, float a)
    • Entry

      public Entry(float r, float g, float b, float a, ColorStack.BlendMethod blendMethod)
    • Entry

      public Entry(float r, float g, float b, float a, ColorStack.BlendMethod blendMethod, boolean blendAlpha)
  • Method Details