Package com.mojang.blaze3d.pipeline
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 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 p_409740_, DestFactor p_409614_) BlendFunction
(SourceFactor sourceColor, DestFactor destColor, SourceFactor sourceAlpha, DestFactor destAlpha) Creates an instance of aBlendFunction
record class. -
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
-
BlendFunction
public BlendFunction(SourceFactor sourceColor, DestFactor destColor, SourceFactor sourceAlpha, DestFactor destAlpha) Creates an instance of aBlendFunction
record class.- Parameters:
sourceColor
- the value for thesourceColor
record componentdestColor
- the value for thedestColor
record componentsourceAlpha
- the value for thesourceAlpha
record componentdestAlpha
- the value for thedestAlpha
record component
-
-
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
-