Record Class BlendFunction

java.lang.Object
java.lang.Record
com.mojang.blaze3d.pipeline.BlendFunction

@Environment(CLIENT) public record BlendFunction(SourceFactor sourceColor, DestFactor destColor, SourceFactor sourceAlpha, DestFactor destAlpha) extends Record
Mappings:
Namespace Name
named com/mojang/blaze3d/pipeline/BlendFunction
intermediary com/mojang/blaze3d/pipeline/BlendFunction
official com/mojang/blaze3d/pipeline/BlendFunction
  • Field Details Link icon

    • sourceColor Link icon

      private final SourceFactor sourceColor
      The field for the sourceColor record component.
    • destColor Link icon

      private final DestFactor destColor
      The field for the destColor record component.
    • sourceAlpha Link icon

      private final SourceFactor sourceAlpha
      The field for the sourceAlpha record component.
    • destAlpha Link icon

      private final DestFactor destAlpha
      The field for the destAlpha record component.
    • LIGHTNING Link icon

      public static final BlendFunction LIGHTNING
    • GLINT Link icon

      public static final BlendFunction GLINT
    • OVERLAY Link icon

      public static final BlendFunction OVERLAY
    • TRANSLUCENT Link icon

      public static final BlendFunction TRANSLUCENT
    • ADDITIVE Link icon

      public static final BlendFunction ADDITIVE
    • PANORAMA Link icon

      public static final BlendFunction PANORAMA
    • ENTITY_OUTLINE_BLIT Link icon

      public static final BlendFunction ENTITY_OUTLINE_BLIT
  • Constructor Details Link icon

    • BlendFunction Link icon

      public BlendFunction(SourceFactor source, DestFactor dest)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lcom/mojang/blaze3d/pipeline/BlendFunction;<init>(Lcom/mojang/blaze3d/platform/SourceFactor;Lcom/mojang/blaze3d/platform/DestFactor;)V
      intermediary <init> Lcom/mojang/blaze3d/pipeline/BlendFunction;<init>(Lcom/mojang/blaze3d/platform/SourceFactor;Lcom/mojang/blaze3d/platform/DestFactor;)V
      official <init> Lcom/mojang/blaze3d/pipeline/BlendFunction;<init>(Lcom/mojang/blaze3d/platform/SourceFactor;Lcom/mojang/blaze3d/platform/DestFactor;)V
    • BlendFunction Link icon

      public BlendFunction(SourceFactor sourceFactor, DestFactor destFactor, SourceFactor sourceFactor2, DestFactor destFactor2)
  • Method Details Link icon

    • toString Link icon

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • sourceColor Link icon

      public SourceFactor sourceColor()
      Returns the value of the sourceColor record component.
      Returns:
      the value of the sourceColor record component
    • destColor Link icon

      public DestFactor destColor()
      Returns the value of the destColor record component.
      Returns:
      the value of the destColor record component
    • sourceAlpha Link icon

      public SourceFactor sourceAlpha()
      Returns the value of the sourceAlpha record component.
      Returns:
      the value of the sourceAlpha record component
    • destAlpha Link icon

      public DestFactor destAlpha()
      Returns the value of the destAlpha record component.
      Returns:
      the value of the destAlpha record component