java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.client.render.entity.renderers.smd.model.Skeleton

public record Skeleton(short boneId, float x, float y, float z, float rotx, float roty, float rotz) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Skeleton(short boneId, float x, float y, float z, float rotx, float roty, float rotz)
    Creates an instance of a Skeleton record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    short
    Returns the value of the boneId record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    static Skeleton
     
    float
    Returns the value of the rotx record component.
    float
    Returns the value of the roty record component.
    float
    Returns the value of the rotz record component.
    final String
    Returns a string representation of this record class.
    float
    x()
    Returns the value of the x record component.
    float
    y()
    Returns the value of the y record component.
    float
    z()
    Returns the value of the z record component.

    Methods inherited from class java.lang.Object

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

    • Skeleton

      public Skeleton(short boneId, float x, float y, float z, float rotx, float roty, float rotz)
      Creates an instance of a Skeleton record class.
      Parameters:
      boneId - the value for the boneId record component
      x - the value for the x record component
      y - the value for the y record component
      z - the value for the z record component
      rotx - the value for the rotx record component
      roty - the value for the roty record component
      rotz - the value for the rotz record component
  • Method Details

    • read

      public static Skeleton read(DataInput in) throws IOException
      Throws:
      IOException
    • 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 '=='.
      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.
    • boneId

      public short boneId()
      Returns the value of the boneId record component.
      Returns:
      the value of the boneId record component
    • x

      public float x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      public float y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • z

      public float z()
      Returns the value of the z record component.
      Returns:
      the value of the z record component
    • rotx

      public float rotx()
      Returns the value of the rotx record component.
      Returns:
      the value of the rotx record component
    • roty

      public float roty()
      Returns the value of the roty record component.
      Returns:
      the value of the roty record component
    • rotz

      public float rotz()
      Returns the value of the rotz record component.
      Returns:
      the value of the rotz record component