Package net.minecraft.client.model
Record Class ModelTransform
java.lang.Object
java.lang.Record
net.minecraft.client.model.ModelTransform
- Record Components:
pivotX
-pivotY
-pivotZ
-pitch
-yaw
-roll
-xScale
-yScale
-zScale
-
@Environment(CLIENT)
public record ModelTransform(float pivotX, float pivotY, float pivotZ, float pitch, float yaw, float roll, float xScale, float yScale, float zScale)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/model/ModelTransform
intermediary net/minecraft/class_5603
official gep
named pivotX
intermediary comp_2997
official b
named pivotY
intermediary comp_2998
official c
named pivotZ
intermediary comp_2999
official d
named pitch
intermediary comp_3000
official e
named yaw
intermediary comp_3001
official f
named roll
intermediary comp_3002
official g
named xScale
intermediary comp_3003
official h
named yScale
intermediary comp_3004
official i
named zScale
intermediary comp_3005
official j
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ModelTransform
private final float
The field for thepitch
record component.private final float
The field for thepivotX
record component.private final float
The field for thepivotY
record component.private final float
The field for thepivotZ
record component.private final float
The field for theroll
record component.private final float
The field for thexScale
record component.private final float
The field for theyaw
record component.private final float
The field for theyScale
record component.private final float
The field for thezScale
record component. -
Constructor Summary
ConstructorDescriptionModelTransform
(float pivotX, float pivotY, float pivotZ, float pitch, float float2, float float3, float float4, float float5, float float6) -
Method Summary
Modifier and TypeMethodDescriptionaddPivot
(float pivotX, float pivotY, float pivotZ) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static ModelTransform
of
(float pivotX, float pivotY, float pivotZ, float pitch, float yaw, float roll) float
pitch()
Returns the value of thepitch
record component.static ModelTransform
pivot
(float pivotX, float pivotY, float pivotZ) float
pivotX()
Returns the value of thepivotX
record component.float
pivotY()
Returns the value of thepivotY
record component.float
pivotZ()
Returns the value of thepivotZ
record component.float
roll()
Returns the value of theroll
record component.static ModelTransform
rotation
(float pitch, float yaw, float roll) scaled
(float scale) scaled
(float xScale, float yScale, float zScale) final String
toString()
Returns a string representation of this record class.withScale
(float scale) float
xScale()
Returns the value of thexScale
record component.float
yaw()
Returns the value of theyaw
record component.float
yScale()
Returns the value of theyScale
record component.float
zScale()
Returns the value of thezScale
record component.
-
Field Details
-
pivotX
private final float pivotXThe field for thepivotX
record component. -
pivotY
private final float pivotYThe field for thepivotY
record component. -
pivotZ
private final float pivotZThe field for thepivotZ
record component. -
pitch
private final float pitchThe field for thepitch
record component. -
yaw
private final float yawThe field for theyaw
record component. -
roll
private final float rollThe field for theroll
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. -
NONE
- Mappings:
Namespace Name Mixin selector named NONE
Lnet/minecraft/client/model/ModelTransform;NONE:Lnet/minecraft/client/model/ModelTransform;
intermediary field_27701
Lnet/minecraft/class_5603;field_27701:Lnet/minecraft/class_5603;
official a
Lgep;a:Lgep;
-
-
Constructor Details
-
ModelTransform
public ModelTransform(float pivotX, float pivotY, float pivotZ, float pitch, float float2, float float3, float float4, float float5, float float6) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/model/ModelTransform;<init>(FFFFFFFFF)V
intermediary <init>
Lnet/minecraft/class_5603;<init>(FFFFFFFFF)V
official <init>
Lgep;<init>(FFFFFFFFF)V
-
-
Method Details
-
pivot
- Mappings:
Namespace Name Mixin selector named pivot
Lnet/minecraft/client/model/ModelTransform;pivot(FFF)Lnet/minecraft/client/model/ModelTransform;
intermediary method_32090
Lnet/minecraft/class_5603;method_32090(FFF)Lnet/minecraft/class_5603;
official a
Lgep;a(FFF)Lgep;
-
rotation
- Mappings:
Namespace Name Mixin selector named rotation
Lnet/minecraft/client/model/ModelTransform;rotation(FFF)Lnet/minecraft/client/model/ModelTransform;
intermediary method_32092
Lnet/minecraft/class_5603;method_32092(FFF)Lnet/minecraft/class_5603;
official b
Lgep;b(FFF)Lgep;
-
of
public static ModelTransform of(float pivotX, float pivotY, float pivotZ, float pitch, float yaw, float roll) - Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/client/model/ModelTransform;of(FFFFFF)Lnet/minecraft/client/model/ModelTransform;
intermediary method_32091
Lnet/minecraft/class_5603;method_32091(FFFFFF)Lnet/minecraft/class_5603;
official a
Lgep;a(FFFFFF)Lgep;
-
addPivot
- Mappings:
Namespace Name Mixin selector named addPivot
Lnet/minecraft/client/model/ModelTransform;addPivot(FFF)Lnet/minecraft/client/model/ModelTransform;
intermediary method_62135
Lnet/minecraft/class_5603;method_62135(FFF)Lnet/minecraft/class_5603;
official c
Lgep;c(FFF)Lgep;
-
withScale
- Mappings:
Namespace Name Mixin selector named withScale
Lnet/minecraft/client/model/ModelTransform;withScale(F)Lnet/minecraft/client/model/ModelTransform;
intermediary method_62133
Lnet/minecraft/class_5603;method_62133(F)Lnet/minecraft/class_5603;
official a
Lgep;a(F)Lgep;
-
scaled
- Mappings:
Namespace Name Mixin selector named scaled
Lnet/minecraft/client/model/ModelTransform;scaled(F)Lnet/minecraft/client/model/ModelTransform;
intermediary method_62134
Lnet/minecraft/class_5603;method_62134(F)Lnet/minecraft/class_5603;
official b
Lgep;b(F)Lgep;
-
scaled
- Mappings:
Namespace Name Mixin selector named scaled
Lnet/minecraft/client/model/ModelTransform;scaled(FFF)Lnet/minecraft/client/model/ModelTransform;
intermediary method_62136
Lnet/minecraft/class_5603;method_62136(FFF)Lnet/minecraft/class_5603;
official d
Lgep;d(FFF)Lgep;
-
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 '=='. -
pivotX
public float pivotX()Returns the value of thepivotX
record component.- Returns:
- the value of the
pivotX
record component
-
pivotY
public float pivotY()Returns the value of thepivotY
record component.- Returns:
- the value of the
pivotY
record component
-
pivotZ
public float pivotZ()Returns the value of thepivotZ
record component.- Returns:
- the value of the
pivotZ
record component
-
pitch
public float pitch()Returns the value of thepitch
record component.- Returns:
- the value of the
pitch
record component
-
yaw
public float yaw()Returns the value of theyaw
record component.- Returns:
- the value of the
yaw
record component
-
roll
public float roll()Returns the value of theroll
record component.- Returns:
- the value of the
roll
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
-