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/ModelTransformintermediary net/minecraft/class_5603official gepnamed pivotXintermediary comp_2997official bnamed pivotYintermediary comp_2998official cnamed pivotZintermediary comp_2999official dnamed pitchintermediary comp_3000official enamed yawintermediary comp_3001official fnamed rollintermediary comp_3002official gnamed xScaleintermediary comp_3003official hnamed yScaleintermediary comp_3004official inamed zScaleintermediary comp_3005official j
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionModelTransform(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 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
-
pivotX
private final float pivotXThe field for thepivotXrecord component. -
pivotY
private final float pivotYThe field for thepivotYrecord component. -
pivotZ
private final float pivotZThe field for thepivotZrecord component. -
pitch
private final float pitchThe field for thepitchrecord component. -
yaw
private final float yawThe field for theyawrecord component. -
roll
private final float rollThe field for therollrecord 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. -
NONE
- Mappings:
Namespace Name Mixin selector named NONELnet/minecraft/client/model/ModelTransform;NONE:Lnet/minecraft/client/model/ModelTransform;intermediary field_27701Lnet/minecraft/class_5603;field_27701:Lnet/minecraft/class_5603;official aLgep;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)Vintermediary <init>Lnet/minecraft/class_5603;<init>(FFFFFFFFF)Vofficial <init>Lgep;<init>(FFFFFFFFF)V
-
-
Method Details
-
pivot
- Mappings:
Namespace Name Mixin selector named pivotLnet/minecraft/client/model/ModelTransform;pivot(FFF)Lnet/minecraft/client/model/ModelTransform;intermediary method_32090Lnet/minecraft/class_5603;method_32090(FFF)Lnet/minecraft/class_5603;official aLgep;a(FFF)Lgep;
-
rotation
- Mappings:
Namespace Name Mixin selector named rotationLnet/minecraft/client/model/ModelTransform;rotation(FFF)Lnet/minecraft/client/model/ModelTransform;intermediary method_32092Lnet/minecraft/class_5603;method_32092(FFF)Lnet/minecraft/class_5603;official bLgep;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 ofLnet/minecraft/client/model/ModelTransform;of(FFFFFF)Lnet/minecraft/client/model/ModelTransform;intermediary method_32091Lnet/minecraft/class_5603;method_32091(FFFFFF)Lnet/minecraft/class_5603;official aLgep;a(FFFFFF)Lgep;
-
addPivot
- Mappings:
Namespace Name Mixin selector named addPivotLnet/minecraft/client/model/ModelTransform;addPivot(FFF)Lnet/minecraft/client/model/ModelTransform;intermediary method_62135Lnet/minecraft/class_5603;method_62135(FFF)Lnet/minecraft/class_5603;official cLgep;c(FFF)Lgep;
-
withScale
- Mappings:
Namespace Name Mixin selector named withScaleLnet/minecraft/client/model/ModelTransform;withScale(F)Lnet/minecraft/client/model/ModelTransform;intermediary method_62133Lnet/minecraft/class_5603;method_62133(F)Lnet/minecraft/class_5603;official aLgep;a(F)Lgep;
-
scaled
- Mappings:
Namespace Name Mixin selector named scaledLnet/minecraft/client/model/ModelTransform;scaled(F)Lnet/minecraft/client/model/ModelTransform;intermediary method_62134Lnet/minecraft/class_5603;method_62134(F)Lnet/minecraft/class_5603;official bLgep;b(F)Lgep;
-
scaled
- Mappings:
Namespace Name Mixin selector named scaledLnet/minecraft/client/model/ModelTransform;scaled(FFF)Lnet/minecraft/client/model/ModelTransform;intermediary method_62136Lnet/minecraft/class_5603;method_62136(FFF)Lnet/minecraft/class_5603;official dLgep;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 thepivotXrecord component.- Returns:
- the value of the
pivotXrecord component
-
pivotY
public float pivotY()Returns the value of thepivotYrecord component.- Returns:
- the value of the
pivotYrecord component
-
pivotZ
public float pivotZ()Returns the value of thepivotZrecord component.- Returns:
- the value of the
pivotZrecord component
-
pitch
public float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-
yaw
public float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
roll
public float roll()Returns the value of therollrecord component.- Returns:
- the value of the
rollrecord 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
-