Package com.mojang.blaze3d.pipeline
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/BlendFunctionintermediary com/mojang/blaze3d/pipeline/BlendFunctionofficial com/mojang/blaze3d/pipeline/BlendFunction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlendFunctionprivate final DestFactorThe field for thedestAlpharecord component.private final DestFactorThe field for thedestColorrecord component.static final BlendFunctionstatic final BlendFunctionstatic final BlendFunctionstatic final BlendFunctionstatic final BlendFunctionprivate final SourceFactorThe field for thesourceAlpharecord component.private final SourceFactorThe field for thesourceColorrecord component.static final BlendFunction -
Constructor Summary
ConstructorsConstructorDescriptionBlendFunction(SourceFactor source, DestFactor dest) BlendFunction(SourceFactor sourceFactor, DestFactor destFactor, SourceFactor sourceFactor2, DestFactor destFactor2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestAlpharecord component.Returns the value of thedestColorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesourceAlpharecord component.Returns the value of thesourceColorrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sourceColor
The field for thesourceColorrecord component. -
destColor
The field for thedestColorrecord component. -
sourceAlpha
The field for thesourceAlpharecord component. -
destAlpha
The field for thedestAlpharecord component. -
LIGHTNING
-
GLINT
-
OVERLAY
-
TRANSLUCENT
-
ADDITIVE
-
PANORAMA
-
ENTITY_OUTLINE_BLIT
-
-
Constructor Details
-
BlendFunction
- Mappings:
Namespace Name Mixin selector named <init>Lcom/mojang/blaze3d/pipeline/BlendFunction;<init>(Lcom/mojang/blaze3d/platform/SourceFactor;Lcom/mojang/blaze3d/platform/DestFactor;)Vintermediary <init>Lcom/mojang/blaze3d/pipeline/BlendFunction;<init>(Lcom/mojang/blaze3d/platform/SourceFactor;Lcom/mojang/blaze3d/platform/DestFactor;)Vofficial <init>Lcom/mojang/blaze3d/pipeline/BlendFunction;<init>(Lcom/mojang/blaze3d/platform/SourceFactor;Lcom/mojang/blaze3d/platform/DestFactor;)V
-
BlendFunction
public BlendFunction(SourceFactor sourceFactor, DestFactor destFactor, SourceFactor sourceFactor2, DestFactor destFactor2)
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
sourceColor
Returns the value of thesourceColorrecord component.- Returns:
- the value of the
sourceColorrecord component
-
destColor
Returns the value of thedestColorrecord component.- Returns:
- the value of the
destColorrecord component
-
sourceAlpha
Returns the value of thesourceAlpharecord component.- Returns:
- the value of the
sourceAlpharecord component
-
destAlpha
Returns the value of thedestAlpharecord component.- Returns:
- the value of the
destAlpharecord component
-