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

    Constructors
    Constructor
    Description
    CubeFace(int texture, float u0, float v0, float u1, float v1, int quarterTurns)
    Creates an instance of a CubeFace record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the quarterTurns record component.
    int
    Returns the value of the texture record component.
    final String
    Returns a string representation of this record class.
    float
    u0()
    Returns the value of the u0 record component.
    float
    u1()
    Returns the value of the u1 record component.
    float
    v0()
    Returns the value of the v0 record component.
    float
    v1()
    Returns the value of the v1 record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CubeFace

      public CubeFace(int texture, float u0, float v0, float u1, float v1, int quarterTurns)
      Creates an instance of a CubeFace record class.
      Parameters:
      texture - the value for the texture record component
      u0 - the value for the u0 record component
      v0 - the value for the v0 record component
      u1 - the value for the u1 record component
      v1 - the value for the v1 record component
      quarterTurns - the value for the quarterTurns record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • texture

      public int texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component
    • u0

      public float u0()
      Returns the value of the u0 record component.
      Returns:
      the value of the u0 record component
    • v0

      public float v0()
      Returns the value of the v0 record component.
      Returns:
      the value of the v0 record component
    • u1

      public float u1()
      Returns the value of the u1 record component.
      Returns:
      the value of the u1 record component
    • v1

      public float v1()
      Returns the value of the v1 record component.
      Returns:
      the value of the v1 record component
    • quarterTurns

      public int quarterTurns()
      Returns the value of the quarterTurns record component.
      Returns:
      the value of the quarterTurns record component