Package net.minecraft.client.model
Record Class ModelTransform
java.lang.Object
java.lang.Record
net.minecraft.client.model.ModelTransform
- Record Components:
x-y-z-pitch-yaw-roll-xScale-yScale-zScale-
@Environment(CLIENT)
public record ModelTransform(float x, float y, float z, 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 gktnamed xintermediary comp_2997official bnamed yintermediary comp_2998official cnamed zintermediary 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 therollrecord component.private final floatThe field for thexrecord component.private final floatThe field for thexScalerecord component.private final floatThe field for theyrecord component.private final floatThe field for theyawrecord component.private final floatThe field for theyScalerecord component.private final floatThe field for thezrecord 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 TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.moveOrigin(float x, float y, float z) static ModelTransformof(float originX, float originY, float originZ, float pitch, float yaw, float roll) static ModelTransformorigin(float x, float y, float z) floatpitch()Returns the value of thepitchrecord 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) floatx()Returns the value of thexrecord component.floatxScale()Returns the value of thexScalerecord component.floaty()Returns the value of theyrecord component.floatyaw()Returns the value of theyawrecord component.floatyScale()Returns the value of theyScalerecord component.floatz()Returns the value of thezrecord 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. -
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 aLgkt;a:Lgkt;
-
-
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>Lgkt;<init>(FFFFFFFFF)V
-
-
Method Details
-
origin
- Mappings:
Namespace Name Mixin selector named originLnet/minecraft/client/model/ModelTransform;origin(FFF)Lnet/minecraft/client/model/ModelTransform;intermediary method_32090Lnet/minecraft/class_5603;method_32090(FFF)Lnet/minecraft/class_5603;official aLgkt;a(FFF)Lgkt;
-
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 bLgkt;b(FFF)Lgkt;
-
of
public static ModelTransform of(float originX, float originY, float originZ, 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 aLgkt;a(FFFFFF)Lgkt;
-
moveOrigin
- Mappings:
Namespace Name Mixin selector named moveOriginLnet/minecraft/client/model/ModelTransform;moveOrigin(FFF)Lnet/minecraft/client/model/ModelTransform;intermediary method_62135Lnet/minecraft/class_5603;method_62135(FFF)Lnet/minecraft/class_5603;official cLgkt;c(FFF)Lgkt;
-
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 aLgkt;a(F)Lgkt;
-
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 bLgkt;b(F)Lgkt;
-
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 dLgkt;d(FFF)Lgkt;
-
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
-
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
-