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 float
The field for thex
record component.private final float
The field for thexRot
record component.private final float
The field for thexScale
record component.private final float
The field for they
record component.private final float
The field for theyRot
record component.private final float
The field for theyScale
record component.private final float
The field for thez
record component.static final PartPose
private final float
The field for thezRot
record component.private final float
The field for thezScale
record 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 aPartPose
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
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
toString()
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 thex
record component.float
xRot()
Returns the value of thexRot
record component.float
xScale()
Returns the value of thexScale
record component.float
y()
Returns the value of they
record component.float
yRot()
Returns the value of theyRot
record component.float
yScale()
Returns the value of theyScale
record component.float
z()
Returns the value of thez
record component.float
zRot()
Returns the value of thezRot
record component.float
zScale()
Returns the value of thezScale
record component.
-
Field Details
-
x
private final float xThe field for thex
record component. -
y
private final float yThe field for they
record component. -
z
private final float zThe field for thez
record component. -
xRot
private final float xRotThe field for thexRot
record component. -
yRot
private final float yRotThe field for theyRot
record component. -
zRot
private final float zRotThe field for thezRot
record component. -
xScale
private final float xScaleThe field for thexScale
record component. -
yScale
private final float yScaleThe field for theyScale
record component. -
zScale
private final float zScaleThe field for thezScale
record 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 aPartPose
record class.- Parameters:
x
- the value for thex
record componenty
- the value for they
record componentz
- the value for thez
record componentxRot
- the value for thexRot
record componentyRot
- the value for theyRot
record componentzRot
- the value for thezRot
record componentxScale
- the value for thexScale
record componentyScale
- the value for theyScale
record componentzScale
- the value for thezScale
record component
-
-
Method Details
-
offset
-
rotation
-
offsetAndRotation
public static PartPose offsetAndRotation(float p_171424_, float p_171425_, float p_171426_, float p_171427_, float p_171428_, float p_171429_) -
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 thex
record component.- Returns:
- the value of the
x
record component
-
y
public float y()Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
z
public float z()Returns the value of thez
record component.- Returns:
- the value of the
z
record component
-
xRot
public float xRot()Returns the value of thexRot
record component.- Returns:
- the value of the
xRot
record component
-
yRot
public float yRot()Returns the value of theyRot
record component.- Returns:
- the value of the
yRot
record component
-
zRot
public float zRot()Returns the value of thezRot
record component.- Returns:
- the value of the
zRot
record component
-
xScale
public float xScale()Returns the value of thexScale
record component.- Returns:
- the value of the
xScale
record component
-
yScale
public float yScale()Returns the value of theyScale
record component.- Returns:
- the value of the
yScale
record component
-
zScale
public float zScale()Returns the value of thezScale
record component.- Returns:
- the value of the
zScale
record component
-