Record Class QueryEntities.TransformData

java.lang.Object
java.lang.Record
nl.pim16aap2.lightkeeper.protocol.QueryEntities.TransformData
Record Components:
translationX - Translation X.
translationY - Translation Y.
translationZ - Translation Z.
scaleX - Scale X.
scaleY - Scale Y.
scaleZ - Scale Z.
leftRotation - Left rotation quaternion as [x, y, z, w].
rightRotation - Right rotation quaternion as [x, y, z, w].
Enclosing class:
QueryEntities

public static record QueryEntities.TransformData(double translationX, double translationY, double translationZ, double scaleX, double scaleY, double scaleZ, List<Double> leftRotation, List<Double> rightRotation) extends Record
A display entity's transformation.
  • Constructor Details

    • TransformData

      public TransformData(double translationX, double translationY, double translationZ, double scaleX, double scaleY, double scaleZ, List<Double> leftRotation, List<Double> rightRotation)
      Validates and defensively copies the rotations.
  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • translationX

      public double translationX()
      Returns the value of the translationX record component.
      Returns:
      the value of the translationX record component
    • translationY

      public double translationY()
      Returns the value of the translationY record component.
      Returns:
      the value of the translationY record component
    • translationZ

      public double translationZ()
      Returns the value of the translationZ record component.
      Returns:
      the value of the translationZ record component
    • scaleX

      public double scaleX()
      Returns the value of the scaleX record component.
      Returns:
      the value of the scaleX record component
    • scaleY

      public double scaleY()
      Returns the value of the scaleY record component.
      Returns:
      the value of the scaleY record component
    • scaleZ

      public double scaleZ()
      Returns the value of the scaleZ record component.
      Returns:
      the value of the scaleZ record component
    • leftRotation

      public List<Double> leftRotation()
      Returns the value of the leftRotation record component.
      Returns:
      the value of the leftRotation record component
    • rightRotation

      public List<Double> rightRotation()
      Returns the value of the rightRotation record component.
      Returns:
      the value of the rightRotation record component