Record Class BlendFunction

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

public record BlendFunction(SourceFactor sourceColor, DestFactor destColor, SourceFactor sourceAlpha, DestFactor destAlpha) extends Record
  • Field Details

    • sourceColor

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

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

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

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

      public static final BlendFunction LIGHTNING
    • GLINT

      public static final BlendFunction GLINT
    • OVERLAY

      public static final BlendFunction OVERLAY
    • TRANSLUCENT

      public static final BlendFunction TRANSLUCENT
    • ADDITIVE

      public static final BlendFunction ADDITIVE
    • PANORAMA

      public static final BlendFunction PANORAMA
    • ENTITY_OUTLINE_BLIT

      public static final BlendFunction ENTITY_OUTLINE_BLIT
  • Constructor Details

    • BlendFunction

      public BlendFunction(SourceFactor p_409740_, DestFactor p_409614_)
    • BlendFunction

      public BlendFunction(SourceFactor sourceColor, DestFactor destColor, SourceFactor sourceAlpha, DestFactor destAlpha)
      Creates an instance of a BlendFunction record class.
      Parameters:
      sourceColor - the value for the sourceColor record component
      destColor - the value for the destColor record component
      sourceAlpha - the value for the sourceAlpha record component
      destAlpha - the value for the destAlpha record component
  • Method Details

    • toString

      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

      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

      public final boolean equals(Object o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sourceColor

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

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

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

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