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 - gfg- 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 SummaryFieldsModifier and TypeFieldDescriptionstatic final ModelTransformprivate final floatThe field for thepitchrecord component.private final floatThe field for thepivotXrecord component.private final floatThe field for thepivotYrecord component.private final floatThe field for thepivotZrecord component.private final floatThe field for therollrecord component.private final floatThe field for thexScalerecord component.private final floatThe field for theyawrecord component.private final floatThe field for theyScalerecord component.private final floatThe field for thezScalerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionModelTransform(float pivotX, float pivotY, float pivotZ, float pitch, float float2, float float3, float float4, float float5, float float6) 
- 
Method SummaryModifier and TypeMethodDescriptionaddPivot(float pivotX, float pivotY, float pivotZ) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static ModelTransformof(float pivotX, float pivotY, float pivotZ, float pitch, float yaw, float roll) floatpitch()Returns the value of thepitchrecord component.static ModelTransformpivot(float pivotX, float pivotY, float pivotZ) floatpivotX()Returns the value of thepivotXrecord component.floatpivotY()Returns the value of thepivotYrecord component.floatpivotZ()Returns the value of thepivotZrecord component.floatroll()Returns the value of therollrecord component.static ModelTransformrotation(float pitch, float yaw, float roll) scaled(float scale) scaled(float xScale, float yScale, float zScale) final StringtoString()Returns a string representation of this record class.withScale(float scale) floatxScale()Returns the value of thexScalerecord component.floatyaw()Returns the value of theyawrecord component.floatyScale()Returns the value of theyScalerecord component.floatzScale()Returns the value of thezScalerecord component.
- 
Field Details- 
pivotXprivate final float pivotXThe field for thepivotXrecord component.
- 
pivotYprivate final float pivotYThe field for thepivotYrecord component.
- 
pivotZprivate final float pivotZThe field for thepivotZrecord component.
- 
pitchprivate final float pitchThe field for thepitchrecord component.
- 
yawprivate final float yawThe field for theyawrecord component.
- 
rollprivate final float rollThe field for therollrecord component.
- 
xScaleprivate final float xScaleThe field for thexScalerecord component.
- 
yScaleprivate final float yScaleThe field for theyScalerecord component.
- 
zScaleprivate final float zScaleThe field for thezScalerecord 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- Lgfg;a:Lgfg;
 
 
- 
- 
Constructor Details- 
ModelTransformpublic 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>- Lgfg;<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- Lgfg;a(FFF)Lgfg;
 
- 
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- Lgfg;b(FFF)Lgfg;
 
- 
ofpublic 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- Lgfg;a(FFFFFF)Lgfg;
 
- 
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- Lgfg;c(FFF)Lgfg;
 
- 
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- Lgfg;a(F)Lgfg;
 
- 
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- Lgfg;b(F)Lgfg;
 
- 
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- Lgfg;d(FFF)Lgfg;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
pivotXpublic float pivotX()Returns the value of thepivotXrecord component.- Returns:
- the value of the pivotXrecord component
 
- 
pivotYpublic float pivotY()Returns the value of thepivotYrecord component.- Returns:
- the value of the pivotYrecord component
 
- 
pivotZpublic float pivotZ()Returns the value of thepivotZrecord component.- Returns:
- the value of the pivotZrecord component
 
- 
pitchpublic float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the pitchrecord component
 
- 
yawpublic float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the yawrecord component
 
- 
rollpublic float roll()Returns the value of therollrecord component.- Returns:
- the value of the rollrecord component
 
- 
xScalepublic float xScale()Returns the value of thexScalerecord component.- Returns:
- the value of the xScalerecord component
 
- 
yScalepublic float yScale()Returns the value of theyScalerecord component.- Returns:
- the value of the yScalerecord component
 
- 
zScalepublic float zScale()Returns the value of thezScalerecord component.- Returns:
- the value of the zScalerecord component
 
 
-