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
ConstructorsConstructorDescriptionTransparencyState(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 aTransparencyStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.blaze3d.platform.GlStateManager.DestFactorReturns the value of thedstAlphaFactorrecord component.com.mojang.blaze3d.platform.GlStateManager.DestFactorReturns the value of thedstColorFactorrecord 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.GlStateManager.SourceFactorReturns the value of thesrcAlphaFactorrecord component.com.mojang.blaze3d.platform.GlStateManager.SourceFactorReturns the value of thesrcColorFactorrecord component.final StringtoString()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 aTransparencyStaterecord class.- Parameters:
srcColorFactor- the value for thesrcColorFactorrecord componentdstColorFactor- the value for thedstColorFactorrecord componentsrcAlphaFactor- the value for thesrcAlphaFactorrecord componentdstAlphaFactor- the value for thedstAlphaFactorrecord 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 thesrcColorFactorrecord component.- Returns:
- the value of the
srcColorFactorrecord component
-
dstColorFactor
public com.mojang.blaze3d.platform.GlStateManager.DestFactor dstColorFactor()Returns the value of thedstColorFactorrecord component.- Returns:
- the value of the
dstColorFactorrecord component
-
srcAlphaFactor
public com.mojang.blaze3d.platform.GlStateManager.SourceFactor srcAlphaFactor()Returns the value of thesrcAlphaFactorrecord component.- Returns:
- the value of the
srcAlphaFactorrecord component
-
dstAlphaFactor
public com.mojang.blaze3d.platform.GlStateManager.DestFactor dstAlphaFactor()Returns the value of thedstAlphaFactorrecord component.- Returns:
- the value of the
dstAlphaFactorrecord component
-