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/Transformation
intermediary net/minecraft/class_804
official gtd
named rotation
intermediary comp_3747
official b
named translation
intermediary comp_3748
official c
named scale
intermediary comp_3749
official d
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Transformation
private final Vector3fc
The field for therotation
record component.private final Vector3fc
The field for thescale
record component.private final Vector3fc
The field for thetranslation
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTransformation
(Vector3fc vector3fc, Vector3fc vector3fc2, Vector3fc vector3fc3) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(boolean leftHanded, MatrixStack.Entry entry) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.rotation()
Returns the value of therotation
record component.scale()
Returns the value of thescale
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetranslation
record component.
-
Field Details
-
rotation
The field for therotation
record component. -
translation
The field for thetranslation
record component. -
scale
The field for thescale
record component. -
IDENTITY
- Mappings:
Namespace Name Mixin selector named IDENTITY
Lnet/minecraft/client/render/model/json/Transformation;IDENTITY:Lnet/minecraft/client/render/model/json/Transformation;
intermediary field_4284
Lnet/minecraft/class_804;field_4284:Lnet/minecraft/class_804;
official a
Lgtd;a:Lgtd;
-
-
Constructor Details
-
Method Details
-
apply
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/client/render/model/json/Transformation;apply(ZLnet/minecraft/client/util/math/MatrixStack$Entry;)V
intermediary method_23075
Lnet/minecraft/class_804;method_23075(ZLnet/minecraft/class_4587$class_4665;)V
official a
Lgtd;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 therotation
record component.- Returns:
- the value of the
rotation
record component
-
translation
Returns the value of thetranslation
record component.- Returns:
- the value of the
translation
record component
-
scale
Returns the value of thescale
record component.- Returns:
- the value of the
scale
record component
-