Record Class BlendFactorPair
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.util.BlendFactorPair
public record BlendFactorPair(com.mojang.blaze3d.platform.SourceFactor src, com.mojang.blaze3d.platform.DestFactor dst)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlendFactorPair> static final com.mojang.serialization.Codec<com.mojang.blaze3d.platform.DestFactor> static final com.mojang.serialization.Codec<com.mojang.blaze3d.platform.SourceFactor> static final BlendFactorPairstatic final BlendFactorPair -
Constructor Summary
ConstructorsConstructorDescriptionBlendFactorPair(com.mojang.blaze3d.platform.SourceFactor src, com.mojang.blaze3d.platform.DestFactor dst) Creates an instance of aBlendFactorPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BlendFactorPairalpha(com.mojang.blaze3d.pipeline.BlendFunction function) static BlendFactorPaircolor(com.mojang.blaze3d.pipeline.BlendFunction function) com.mojang.blaze3d.platform.DestFactordst()Returns the value of thedstrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.mojang.blaze3d.platform.SourceFactorsrc()Returns the value of thesrcrecord component.com.mojang.blaze3d.pipeline.BlendFunctionstatic com.mojang.blaze3d.pipeline.BlendFunctiontoFunction(BlendFactorPair color, BlendFactorPair alpha) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SRC_FACTOR_CODEC
public static final com.mojang.serialization.Codec<com.mojang.blaze3d.platform.SourceFactor> SRC_FACTOR_CODEC -
DST_FACTOR_CODEC
public static final com.mojang.serialization.Codec<com.mojang.blaze3d.platform.DestFactor> DST_FACTOR_CODEC -
CODEC
-
TRANSLUCENT_COLOR
-
TRANSLUCENT_ALPHA
-
-
Constructor Details
-
BlendFactorPair
public BlendFactorPair(com.mojang.blaze3d.platform.SourceFactor src, com.mojang.blaze3d.platform.DestFactor dst) Creates an instance of aBlendFactorPairrecord class.- Parameters:
src- the value for thesrcrecord componentdst- the value for thedstrecord component
-
-
Method Details
-
toFunction
public static com.mojang.blaze3d.pipeline.BlendFunction toFunction(BlendFactorPair color, BlendFactorPair alpha) -
color
-
alpha
-
toFunction
public com.mojang.blaze3d.pipeline.BlendFunction toFunction() -
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). -
src
public com.mojang.blaze3d.platform.SourceFactor src()Returns the value of thesrcrecord component.- Returns:
- the value of the
srcrecord component
-
dst
public com.mojang.blaze3d.platform.DestFactor dst()Returns the value of thedstrecord component.- Returns:
- the value of the
dstrecord component
-