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/ModelTransformation
intermediary net/minecraft/class_809
official gnq
named thirdPersonLeftHand
intermediary comp_3368
official b
named thirdPersonRightHand
intermediary comp_3369
official c
named firstPersonLeftHand
intermediary comp_3370
official d
named firstPersonRightHand
intermediary comp_3371
official e
named head
intermediary comp_3372
official f
named gui
intermediary comp_3373
official g
named ground
intermediary comp_3374
official h
named fixed
intermediary comp_3375
official i
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Transformation
The field for thefirstPersonLeftHand
record component.private final Transformation
The field for thefirstPersonRightHand
record component.private final Transformation
The field for thefixed
record component.private final Transformation
The field for theground
record component.private final Transformation
The field for thegui
record component.private final Transformation
The field for thehead
record component.static final ModelTransformation
private final Transformation
The field for thethirdPersonLeftHand
record component.private final Transformation
The field for thethirdPersonRightHand
record component. -
Constructor Summary
ConstructorsConstructorDescriptionModelTransformation
(Transformation thirdPersonLeftHand, Transformation thirdPersonRightHand, Transformation firstPersonLeftHand, Transformation firstPersonRightHand, Transformation head, Transformation gui, Transformation ground, Transformation fixed) Creates an instance of aModelTransformation
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefirstPersonLeftHand
record component.Returns the value of thefirstPersonRightHand
record component.fixed()
Returns the value of thefixed
record component.getTransformation
(ModelTransformationMode renderMode) ground()
Returns the value of theground
record component.gui()
Returns the value of thegui
record component.final int
hashCode()
Returns a hash code value for this object.head()
Returns the value of thehead
record component.Returns the value of thethirdPersonLeftHand
record component.Returns the value of thethirdPersonRightHand
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
thirdPersonLeftHand
The field for thethirdPersonLeftHand
record component. -
thirdPersonRightHand
The field for thethirdPersonRightHand
record component. -
firstPersonLeftHand
The field for thefirstPersonLeftHand
record component. -
firstPersonRightHand
The field for thefirstPersonRightHand
record component. -
head
The field for thehead
record component. -
gui
The field for thegui
record component. -
ground
The field for theground
record component. -
fixed
The field for thefixed
record component. -
NONE
- Mappings:
Namespace Name Mixin selector named NONE
Lnet/minecraft/client/render/model/json/ModelTransformation;NONE:Lnet/minecraft/client/render/model/json/ModelTransformation;
intermediary field_4301
Lnet/minecraft/class_809;field_4301:Lnet/minecraft/class_809;
official a
Lgnq;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 aModelTransformation
record class.- Parameters:
thirdPersonLeftHand
- the value for thethirdPersonLeftHand
record componentthirdPersonRightHand
- the value for thethirdPersonRightHand
record componentfirstPersonLeftHand
- the value for thefirstPersonLeftHand
record componentfirstPersonRightHand
- the value for thefirstPersonRightHand
record componenthead
- the value for thehead
record componentgui
- the value for thegui
record componentground
- the value for theground
record componentfixed
- the value for thefixed
record component
-
-
Method Details
-
getTransformation
- Mappings:
Namespace Name Mixin selector named getTransformation
Lnet/minecraft/client/render/model/json/ModelTransformation;getTransformation(Lnet/minecraft/item/ModelTransformationMode;)Lnet/minecraft/client/render/model/json/Transformation;
intermediary method_3503
Lnet/minecraft/class_809;method_3503(Lnet/minecraft/class_811;)Lnet/minecraft/class_804;
official a
Lgnq;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 thethirdPersonLeftHand
record component.- Returns:
- the value of the
thirdPersonLeftHand
record component
-
thirdPersonRightHand
Returns the value of thethirdPersonRightHand
record component.- Returns:
- the value of the
thirdPersonRightHand
record component
-
firstPersonLeftHand
Returns the value of thefirstPersonLeftHand
record component.- Returns:
- the value of the
firstPersonLeftHand
record component
-
firstPersonRightHand
Returns the value of thefirstPersonRightHand
record component.- Returns:
- the value of the
firstPersonRightHand
record component
-
head
Returns the value of thehead
record component.- Returns:
- the value of the
head
record component
-
gui
Returns the value of thegui
record component.- Returns:
- the value of the
gui
record component
-
ground
Returns the value of theground
record component.- Returns:
- the value of the
ground
record component
-
fixed
Returns the value of thefixed
record component.- Returns:
- the value of the
fixed
record component
-