Record Class ModelTransformation
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelTransformation
- Record Components:
thirdPersonLeftHand-thirdPersonRightHand-firstPersonLeftHand-firstPersonRightHand-head-gui-ground-fixed-
@Environment(CLIENT)
public record ModelTransformation(Transformation thirdPersonLeftHand, Transformation thirdPersonRightHand, Transformation firstPersonLeftHand, Transformation firstPersonRightHand, Transformation head, Transformation gui, Transformation ground, Transformation fixed)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelTransformationintermediary net/minecraft/class_809official gnqnamed thirdPersonLeftHandintermediary comp_3368official bnamed thirdPersonRightHandintermediary comp_3369official cnamed firstPersonLeftHandintermediary comp_3370official dnamed firstPersonRightHandintermediary comp_3371official enamed headintermediary comp_3372official fnamed guiintermediary comp_3373official gnamed groundintermediary comp_3374official hnamed fixedintermediary comp_3375official i
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TransformationThe field for thefirstPersonLeftHandrecord component.private final TransformationThe field for thefirstPersonRightHandrecord component.private final TransformationThe field for thefixedrecord component.private final TransformationThe field for thegroundrecord component.private final TransformationThe field for theguirecord component.private final TransformationThe field for theheadrecord component.static final ModelTransformationprivate final TransformationThe field for thethirdPersonLeftHandrecord component.private final TransformationThe field for thethirdPersonRightHandrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelTransformation(Transformation thirdPersonLeftHand, Transformation thirdPersonRightHand, Transformation firstPersonLeftHand, Transformation firstPersonRightHand, Transformation head, Transformation gui, Transformation ground, Transformation fixed) Creates an instance of aModelTransformationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstPersonLeftHandrecord component.Returns the value of thefirstPersonRightHandrecord component.fixed()Returns the value of thefixedrecord component.getTransformation(ModelTransformationMode renderMode) ground()Returns the value of thegroundrecord component.gui()Returns the value of theguirecord component.final inthashCode()Returns a hash code value for this object.head()Returns the value of theheadrecord component.Returns the value of thethirdPersonLeftHandrecord component.Returns the value of thethirdPersonRightHandrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
thirdPersonLeftHand
The field for thethirdPersonLeftHandrecord component. -
thirdPersonRightHand
The field for thethirdPersonRightHandrecord component. -
firstPersonLeftHand
The field for thefirstPersonLeftHandrecord component. -
firstPersonRightHand
The field for thefirstPersonRightHandrecord component. -
head
The field for theheadrecord component. -
gui
The field for theguirecord component. -
ground
The field for thegroundrecord component. -
fixed
The field for thefixedrecord component. -
NONE
- Mappings:
Namespace Name Mixin selector named NONELnet/minecraft/client/render/model/json/ModelTransformation;NONE:Lnet/minecraft/client/render/model/json/ModelTransformation;intermediary field_4301Lnet/minecraft/class_809;field_4301:Lnet/minecraft/class_809;official aLgnq;a:Lgnq;
-
-
Constructor Details
-
ModelTransformation
public ModelTransformation(Transformation thirdPersonLeftHand, Transformation thirdPersonRightHand, Transformation firstPersonLeftHand, Transformation firstPersonRightHand, Transformation head, Transformation gui, Transformation ground, Transformation fixed) Creates an instance of aModelTransformationrecord class.- Parameters:
thirdPersonLeftHand- the value for thethirdPersonLeftHandrecord componentthirdPersonRightHand- the value for thethirdPersonRightHandrecord componentfirstPersonLeftHand- the value for thefirstPersonLeftHandrecord componentfirstPersonRightHand- the value for thefirstPersonRightHandrecord componenthead- the value for theheadrecord componentgui- the value for theguirecord componentground- the value for thegroundrecord componentfixed- the value for thefixedrecord component
-
-
Method Details
-
getTransformation
- Mappings:
Namespace Name Mixin selector named getTransformationLnet/minecraft/client/render/model/json/ModelTransformation;getTransformation(Lnet/minecraft/item/ModelTransformationMode;)Lnet/minecraft/client/render/model/json/Transformation;intermediary method_3503Lnet/minecraft/class_809;method_3503(Lnet/minecraft/class_811;)Lnet/minecraft/class_804;official aLgnq;a(Lcwo;)Lgnp;
-
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). -
thirdPersonLeftHand
Returns the value of thethirdPersonLeftHandrecord component.- Returns:
- the value of the
thirdPersonLeftHandrecord component
-
thirdPersonRightHand
Returns the value of thethirdPersonRightHandrecord component.- Returns:
- the value of the
thirdPersonRightHandrecord component
-
firstPersonLeftHand
Returns the value of thefirstPersonLeftHandrecord component.- Returns:
- the value of the
firstPersonLeftHandrecord component
-
firstPersonRightHand
Returns the value of thefirstPersonRightHandrecord component.- Returns:
- the value of the
firstPersonRightHandrecord component
-
head
Returns the value of theheadrecord component.- Returns:
- the value of the
headrecord component
-
gui
Returns the value of theguirecord component.- Returns:
- the value of the
guirecord component
-
ground
Returns the value of thegroundrecord component.- Returns:
- the value of the
groundrecord component
-
fixed
Returns the value of thefixedrecord component.- Returns:
- the value of the
fixedrecord component
-