Record Class PartPose

java.lang.Object
java.lang.Record
net.minecraft.client.model.geom.PartPose

public record PartPose(float x, float y, float z, float xRot, float yRot, float zRot, float xScale, float yScale, float zScale) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final float
    The field for the x record component.
    private final float
    The field for the xRot record component.
    private final float
    The field for the xScale record component.
    private final float
    The field for the y record component.
    private final float
    The field for the yRot record component.
    private final float
    The field for the yScale record component.
    private final float
    The field for the z record component.
    static final PartPose
     
    private final float
    The field for the zRot record component.
    private final float
    The field for the zScale record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PartPose(float x, float y, float z, float xRot, float yRot, float zRot, float xScale, float yScale, float zScale)
    Creates an instance of a PartPose 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.
    static PartPose
    offset(float p_171420_, float p_171421_, float p_171422_)
     
    static PartPose
    offsetAndRotation(float p_171424_, float p_171425_, float p_171426_, float p_171427_, float p_171428_, float p_171429_)
     
    static PartPose
    rotation(float p_171431_, float p_171432_, float p_171433_)
     
    scaled(float p_363407_)
     
    scaled(float p_362706_, float p_362631_, float p_361375_)
     
    final String
    Returns a string representation of this record class.
    translated(float p_365091_, float p_362471_, float p_362753_)
     
    withScale(float p_361213_)
     
    float
    x()
    Returns the value of the x record component.
    float
    Returns the value of the xRot record component.
    float
    Returns the value of the xScale record component.
    float
    y()
    Returns the value of the y record component.
    float
    Returns the value of the yRot record component.
    float
    Returns the value of the yScale record component.
    float
    z()
    Returns the value of the z record component.
    float
    Returns the value of the zRot record component.
    float
    Returns the value of the zScale record component.

    Methods inherited from class java.lang.Object

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

    • x

      private final float x
      The field for the x record component.
    • y

      private final float y
      The field for the y record component.
    • z

      private final float z
      The field for the z record component.
    • xRot

      private final float xRot
      The field for the xRot record component.
    • yRot

      private final float yRot
      The field for the yRot record component.
    • zRot

      private final float zRot
      The field for the zRot record component.
    • xScale

      private final float xScale
      The field for the xScale record component.
    • yScale

      private final float yScale
      The field for the yScale record component.
    • zScale

      private final float zScale
      The field for the zScale record component.
    • ZERO

      public static final PartPose ZERO
  • Constructor Details

    • PartPose

      public PartPose(float x, float y, float z, float xRot, float yRot, float zRot, float xScale, float yScale, float zScale)
      Creates an instance of a PartPose record class.
      Parameters:
      x - the value for the x record component
      y - the value for the y record component
      z - the value for the z record component
      xRot - the value for the xRot record component
      yRot - the value for the yRot record component
      zRot - the value for the zRot record component
      xScale - the value for the xScale record component
      yScale - the value for the yScale record component
      zScale - the value for the zScale record component
  • Method Details

    • offset

      public static PartPose offset(float p_171420_, float p_171421_, float p_171422_)
    • rotation

      public static PartPose rotation(float p_171431_, float p_171432_, float p_171433_)
    • offsetAndRotation

      public static PartPose offsetAndRotation(float p_171424_, float p_171425_, float p_171426_, float p_171427_, float p_171428_, float p_171429_)
    • translated

      public PartPose translated(float p_365091_, float p_362471_, float p_362753_)
    • withScale

      public PartPose withScale(float p_361213_)
    • scaled

      public PartPose scaled(float p_363407_)
    • scaled

      public PartPose scaled(float p_362706_, float p_362631_, float p_361375_)
    • 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.
    • 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
    • xRot

      public float xRot()
      Returns the value of the xRot record component.
      Returns:
      the value of the xRot record component
    • yRot

      public float yRot()
      Returns the value of the yRot record component.
      Returns:
      the value of the yRot record component
    • zRot

      public float zRot()
      Returns the value of the zRot record component.
      Returns:
      the value of the zRot record component
    • xScale

      public float xScale()
      Returns the value of the xScale record component.
      Returns:
      the value of the xScale record component
    • yScale

      public float yScale()
      Returns the value of the yScale record component.
      Returns:
      the value of the yScale record component
    • zScale

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