Record Class BedrockActorUvTransform
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.BedrockActorUvTransform
public record BedrockActorUvTransform(float offsetU, float offsetV, float scaleU, float scaleV)
extends Record
Immutable native normalized-UV scale and offset for one submitted draw.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBedrockActorUvTransform(float offsetU, float offsetV, float scaleU, float scaleV) Creates an instance of aBedrockActorUvTransformrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Matrix4fapply(org.joml.Matrix4fc texture) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatoffsetU()Returns the value of theoffsetUrecord component.floatoffsetV()Returns the value of theoffsetVrecord component.floatscaleU()Returns the value of thescaleUrecord component.floatscaleV()Returns the value of thescaleVrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
IDENTITY
-
-
Constructor Details
-
BedrockActorUvTransform
public BedrockActorUvTransform(float offsetU, float offsetV, float scaleU, float scaleV) Creates an instance of aBedrockActorUvTransformrecord class.- Parameters:
offsetU- the value for theoffsetUrecord componentoffsetV- the value for theoffsetVrecord componentscaleU- the value for thescaleUrecord componentscaleV- the value for thescaleVrecord component
-
-
Method Details
-
apply
public org.joml.Matrix4f apply(org.joml.Matrix4fc texture) -
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 with thecomparemethod from their corresponding wrapper classes. -
offsetU
public float offsetU()Returns the value of theoffsetUrecord component.- Returns:
- the value of the
offsetUrecord component
-
offsetV
public float offsetV()Returns the value of theoffsetVrecord component.- Returns:
- the value of the
offsetVrecord component
-
scaleU
public float scaleU()Returns the value of thescaleUrecord component.- Returns:
- the value of the
scaleUrecord component
-
scaleV
public float scaleV()Returns the value of thescaleVrecord component.- Returns:
- the value of the
scaleVrecord component
-