Record Class ArmatureData.CubeFace
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.internal.client.armature.ArmatureData.CubeFace
- Enclosing class:
ArmatureData
public static record ArmatureData.CubeFace(int texture, float u0, float v0, float u1, float v1, int quarterTurns)
extends Record
One side of a cube: the texture rectangle
(u0,v0)-(u1,v1) (0 to 1; u0 > u1 mirrors) and how many
quarter turns clockwise it is rotated.-
Constructor Summary
ConstructorsConstructorDescriptionCubeFace(int texture, float u0, float v0, float u1, float v1, int quarterTurns) Creates an instance of aCubeFacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thequarterTurnsrecord component.inttexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.floatu0()Returns the value of theu0record component.floatu1()Returns the value of theu1record component.floatv0()Returns the value of thev0record component.floatv1()Returns the value of thev1record component.
-
Constructor Details
-
CubeFace
public CubeFace(int texture, float u0, float v0, float u1, float v1, int quarterTurns) Creates an instance of aCubeFacerecord class.- Parameters:
texture- the value for thetexturerecord componentu0- the value for theu0record componentv0- the value for thev0record componentu1- the value for theu1record componentv1- the value for thev1record componentquarterTurns- the value for thequarterTurnsrecord 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 with thecomparemethod from their corresponding wrapper classes. -
texture
public int texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
u0
public float u0()Returns the value of theu0record component.- Returns:
- the value of the
u0record component
-
v0
public float v0()Returns the value of thev0record component.- Returns:
- the value of the
v0record component
-
u1
public float u1()Returns the value of theu1record component.- Returns:
- the value of the
u1record component
-
v1
public float v1()Returns the value of thev1record component.- Returns:
- the value of the
v1record component
-
quarterTurns
public int quarterTurns()Returns the value of thequarterTurnsrecord component.- Returns:
- the value of the
quarterTurnsrecord component
-