Record Class Transformation
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.Transformation
- Record Components:
rotation-translation-scale-
@Environment(CLIENT)
public record Transformation(Vector3fc rotation, Vector3fc translation, Vector3fc scale)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/Transformationintermediary net/minecraft/class_804official gtdnamed rotationintermediary comp_3747official bnamed translationintermediary comp_3748official cnamed scaleintermediary comp_3749official d
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Transformationprivate final Vector3fcThe field for therotationrecord component.private final Vector3fcThe field for thescalerecord component.private final Vector3fcThe field for thetranslationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTransformation(Vector3fc vector3fc, Vector3fc vector3fc2, Vector3fc vector3fc3) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(boolean leftHanded, MatrixStack.Entry entry) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.rotation()Returns the value of therotationrecord component.scale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranslationrecord component.
-
Field Details
-
rotation
The field for therotationrecord component. -
translation
The field for thetranslationrecord component. -
scale
The field for thescalerecord component. -
IDENTITY
- Mappings:
Namespace Name Mixin selector named IDENTITYLnet/minecraft/client/render/model/json/Transformation;IDENTITY:Lnet/minecraft/client/render/model/json/Transformation;intermediary field_4284Lnet/minecraft/class_804;field_4284:Lnet/minecraft/class_804;official aLgtd;a:Lgtd;
-
-
Constructor Details
-
Transformation
-
-
Method Details
-
apply
- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/client/render/model/json/Transformation;apply(ZLnet/minecraft/client/util/math/MatrixStack$Entry;)Vintermediary method_23075Lnet/minecraft/class_804;method_23075(ZLnet/minecraft/class_4587$class_4665;)Vofficial aLgtd;a(ZLfld$a;)V
-
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 withObjects::equals(Object,Object). -
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
translation
Returns the value of thetranslationrecord component.- Returns:
- the value of the
translationrecord component
-
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-