Package foundry.veil.api.client.util
Record Class TransparencyState
java.lang.Object
java.lang.Record
foundry.veil.api.client.util.TransparencyState
public record TransparencyState(com.mojang.blaze3d.platform.GlStateManager.SourceFactor srcColorFactor, com.mojang.blaze3d.platform.GlStateManager.DestFactor dstColorFactor, com.mojang.blaze3d.platform.GlStateManager.SourceFactor srcAlphaFactor, com.mojang.blaze3d.platform.GlStateManager.DestFactor dstAlphaFactor)
extends Record
-
Constructor Summary
ConstructorDescriptionTransparencyState
(com.mojang.blaze3d.platform.GlStateManager.SourceFactor srcFactor, com.mojang.blaze3d.platform.GlStateManager.DestFactor dstFactor) TransparencyState
(com.mojang.blaze3d.platform.GlStateManager.SourceFactor srcColorFactor, com.mojang.blaze3d.platform.GlStateManager.DestFactor dstColorFactor, com.mojang.blaze3d.platform.GlStateManager.SourceFactor srcAlphaFactor, com.mojang.blaze3d.platform.GlStateManager.DestFactor dstAlphaFactor) Creates an instance of aTransparencyState
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.blaze3d.platform.GlStateManager.DestFactor
Returns the value of thedstAlphaFactor
record component.com.mojang.blaze3d.platform.GlStateManager.DestFactor
Returns the value of thedstColorFactor
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.com.mojang.blaze3d.platform.GlStateManager.SourceFactor
Returns the value of thesrcAlphaFactor
record component.com.mojang.blaze3d.platform.GlStateManager.SourceFactor
Returns the value of thesrcColorFactor
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TransparencyState
public TransparencyState(com.mojang.blaze3d.platform.GlStateManager.SourceFactor srcFactor, com.mojang.blaze3d.platform.GlStateManager.DestFactor dstFactor) -
TransparencyState
public TransparencyState(com.mojang.blaze3d.platform.GlStateManager.SourceFactor srcColorFactor, com.mojang.blaze3d.platform.GlStateManager.DestFactor dstColorFactor, com.mojang.blaze3d.platform.GlStateManager.SourceFactor srcAlphaFactor, com.mojang.blaze3d.platform.GlStateManager.DestFactor dstAlphaFactor) Creates an instance of aTransparencyState
record class.- Parameters:
srcColorFactor
- the value for thesrcColorFactor
record componentdstColorFactor
- the value for thedstColorFactor
record componentsrcAlphaFactor
- the value for thesrcAlphaFactor
record componentdstAlphaFactor
- the value for thedstAlphaFactor
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)
. -
srcColorFactor
public com.mojang.blaze3d.platform.GlStateManager.SourceFactor srcColorFactor()Returns the value of thesrcColorFactor
record component.- Returns:
- the value of the
srcColorFactor
record component
-
dstColorFactor
public com.mojang.blaze3d.platform.GlStateManager.DestFactor dstColorFactor()Returns the value of thedstColorFactor
record component.- Returns:
- the value of the
dstColorFactor
record component
-
srcAlphaFactor
public com.mojang.blaze3d.platform.GlStateManager.SourceFactor srcAlphaFactor()Returns the value of thesrcAlphaFactor
record component.- Returns:
- the value of the
srcAlphaFactor
record component
-
dstAlphaFactor
public com.mojang.blaze3d.platform.GlStateManager.DestFactor dstAlphaFactor()Returns the value of thedstAlphaFactor
record component.- Returns:
- the value of the
dstAlphaFactor
record component
-