Package net.minecraft.client.model.geom
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
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thexrecord component.private final floatThe field for thexRotrecord component.private final floatThe field for thexScalerecord component.private final floatThe field for theyrecord component.private final floatThe field for theyRotrecord component.private final floatThe field for theyScalerecord component.private final floatThe field for thezrecord component.static final PartPoseprivate final floatThe field for thezRotrecord component.private final floatThe field for thezScalerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPartPose(float x, float y, float z, float xRot, float yRot, float zRot, float xScale, float yScale, float zScale) Creates an instance of aPartPoserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static PartPoseoffset(float pX, float pY, float pZ) static PartPoseoffsetAndRotation(float pX, float pY, float pZ, float pXRot, float pYRot, float pZRot) static PartPoserotation(float pXRot, float pYRot, float pZRot) scaled(float pScale) scaled(float pX, float pY, float pZ) final StringtoString()Returns a string representation of this record class.translated(float pX, float pY, float pZ) withScale(float pScale) floatx()Returns the value of thexrecord component.floatxRot()Returns the value of thexRotrecord component.floatxScale()Returns the value of thexScalerecord component.floaty()Returns the value of theyrecord component.floatyRot()Returns the value of theyRotrecord component.floatyScale()Returns the value of theyScalerecord component.floatz()Returns the value of thezrecord component.floatzRot()Returns the value of thezRotrecord component.floatzScale()Returns the value of thezScalerecord component.
-
Field Details
-
x
private final float xThe field for thexrecord component. -
y
private final float yThe field for theyrecord component. -
z
private final float zThe field for thezrecord component. -
xRot
private final float xRotThe field for thexRotrecord component. -
yRot
private final float yRotThe field for theyRotrecord component. -
zRot
private final float zRotThe field for thezRotrecord component. -
xScale
private final float xScaleThe field for thexScalerecord component. -
yScale
private final float yScaleThe field for theyScalerecord component. -
zScale
private final float zScaleThe field for thezScalerecord component. -
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 aPartPoserecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentxRot- the value for thexRotrecord componentyRot- the value for theyRotrecord componentzRot- the value for thezRotrecord componentxScale- the value for thexScalerecord componentyScale- the value for theyScalerecord componentzScale- the value for thezScalerecord component
-
-
Method Details
-
offset
-
rotation
-
offsetAndRotation
public static PartPose offsetAndRotation(float pX, float pY, float pZ, float pXRot, float pYRot, float pZRot) -
translated
-
withScale
-
scaled
-
scaled
-
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. All components in this record class are compared with '=='. -
x
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public float z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
xRot
public float xRot()Returns the value of thexRotrecord component.- Returns:
- the value of the
xRotrecord component
-
yRot
public float yRot()Returns the value of theyRotrecord component.- Returns:
- the value of the
yRotrecord component
-
zRot
public float zRot()Returns the value of thezRotrecord component.- Returns:
- the value of the
zRotrecord component
-
xScale
public float xScale()Returns the value of thexScalerecord component.- Returns:
- the value of the
xScalerecord component
-
yScale
public float yScale()Returns the value of theyScalerecord component.- Returns:
- the value of the
yScalerecord component
-
zScale
public float zScale()Returns the value of thezScalerecord component.- Returns:
- the value of the
zScalerecord component
-