Record Class BlendFunction
java.lang.Object
java.lang.Record
com.mojang.blaze3d.pipeline.BlendFunction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlendFunctionprivate final BlendEquationThe field for thealpharecord component.private final BlendEquationThe field for thecolorrecord component.static final BlendFunctionstatic final BlendFunctionstatic final BlendFunctionstatic final BlendFunctionstatic final BlendFunctionstatic final BlendFunctionstatic final BlendFunction -
Constructor Summary
ConstructorsConstructorDescriptionBlendFunction(BlendEquation equation) BlendFunction(BlendEquation color, BlendEquation alpha) Creates an instance of aBlendFunctionrecord class.BlendFunction(BlendFactor srcFactor, BlendFactor dstFactor) BlendFunction(BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendFactor srcAlphaFactor, BlendFactor dstAlphaFactor) BlendFunction(BlendFactor srcFactor, BlendFactor dstFactor, BlendOp op) BlendFunction(BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendOp colorOp, BlendFactor srcAlphaFactor, BlendFactor dstAlphaFactor, BlendOp alphaOp) -
Method Summary
Modifier and TypeMethodDescriptionalpha()Returns the value of thealpharecord component.color()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
color
The field for thecolorrecord component. -
alpha
The field for thealpharecord component. -
LIGHTNING
-
GLINT
-
OVERLAY
-
TRANSLUCENT
-
TRANSLUCENT_PREMULTIPLIED_ALPHA
-
ADDITIVE
-
ENTITY_OUTLINE_BLIT
-
INVERT
-
-
Constructor Details
-
BlendFunction
public BlendFunction(BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendOp colorOp, BlendFactor srcAlphaFactor, BlendFactor dstAlphaFactor, BlendOp alphaOp) -
BlendFunction
public BlendFunction(BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendFactor srcAlphaFactor, BlendFactor dstAlphaFactor) -
BlendFunction
-
BlendFunction
-
BlendFunction
-
BlendFunction
Creates an instance of aBlendFunctionrecord class.- Parameters:
color- the value for thecolorrecord componentalpha- the value for thealpharecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
alpha
Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-