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/BlendFunction
intermediary com/mojang/blaze3d/pipeline/BlendFunction
official com/mojang/blaze3d/pipeline/BlendFunction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlendFunction
private final DestFactor
The field for thedestAlpha
record component.private final DestFactor
The field for thedestColor
record component.static final BlendFunction
static final BlendFunction
static final BlendFunction
static final BlendFunction
static final BlendFunction
private final SourceFactor
The field for thesourceAlpha
record component.private final SourceFactor
The field for thesourceColor
record 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 thedestAlpha
record component.Returns the value of thedestColor
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thesourceAlpha
record component.Returns the value of thesourceColor
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
sourceColor
The field for thesourceColor
record component. -
destColor
The field for thedestColor
record component. -
sourceAlpha
The field for thesourceAlpha
record component. -
destAlpha
The field for thedestAlpha
record 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;)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
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 thesourceColor
record component.- Returns:
- the value of the
sourceColor
record component
-
destColor
Returns the value of thedestColor
record component.- Returns:
- the value of the
destColor
record component
-
sourceAlpha
Returns the value of thesourceAlpha
record component.- Returns:
- the value of the
sourceAlpha
record component
-
destAlpha
Returns the value of thedestAlpha
record component.- Returns:
- the value of the
destAlpha
record component
-