Record Class ShellFaceUV
java.lang.Object
java.lang.Record
foundry.veil.api.flare.data.model.ShellFaceUV
- Since:
- 2.5.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionShellFaceUV(float u0, float v0, float u1, float v1, int rotation) ShellFaceUV(org.joml.Vector4fc uvs, int rotation) Creates an instance of aShellFaceUVrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.floatgetU(int index) floatgetV(int index) final inthashCode()Returns a hash code value for this object.introtation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.org.joml.Vector4fcuvs()Returns the value of theuvsrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
ShellFaceUV
public ShellFaceUV(float u0, float v0, float u1, float v1, int rotation) -
ShellFaceUV
public ShellFaceUV(org.joml.Vector4fc uvs, int rotation) Creates an instance of aShellFaceUVrecord class.- Parameters:
uvs- the value for theuvsrecord componentrotation- the value for therotationrecord component
-
-
Method Details
-
getU
public float getU(int index) -
getV
public float getV(int index) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
uvs
public org.joml.Vector4fc uvs()Returns the value of theuvsrecord component.- Returns:
- the value of the
uvsrecord component
-
rotation
public int rotation()Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-