Record Class ModelRotation
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelRotation
- Record Components:
origin-value-rescale-transform-
@Environment(CLIENT)
public record ModelRotation(Vector3fc origin, ModelRotation.class_12353 value, boolean rescale, Matrix4fc transform)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelRotationintermediary net/minecraft/class_789official hmfnamed originintermediary comp_1118official anamed valueintermediary comp_5246official bnamed rescaleintermediary comp_1121official cnamed transformintermediary comp_5069official d
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic interfacestatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Vector3fcThe field for theoriginrecord component.private final booleanThe field for therescalerecord component.private final Matrix4fcThe field for thetransformrecord component.private final ModelRotation.class_12353The field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelRotation(Vector3fc vector3fc, ModelRotation.class_12353 class_12353, boolean bool) ModelRotation(Vector3fc origin, ModelRotation.class_12353 value, boolean rescale, Matrix4fc transform) Creates an instance of aModelRotationrecord class. -
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.private static Matrix4fmethod_75421(ModelRotation.class_12353 class_12353, boolean bool) private static Vector3fcmethod_75422(Matrix4fc matrix4fc) private static floatmethod_76651(Matrix4fc matrix4fc, Direction.Axis axis, Vector3f vector3f) origin()Returns the value of theoriginrecord component.booleanrescale()Returns the value of therescalerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformrecord component.value()Returns the value of thevaluerecord component.
-
Field Details
-
Constructor Details
-
ModelRotation
-
ModelRotation
public ModelRotation(Vector3fc origin, ModelRotation.class_12353 value, boolean rescale, Matrix4fc transform) Creates an instance of aModelRotationrecord class.
-
-
Method Details
-
method_75421
- Mappings:
Namespace Name Mixin selector named method_75421Lnet/minecraft/client/render/model/json/ModelRotation;method_75421(Lnet/minecraft/client/render/model/json/ModelRotation$class_12353;Z)Lorg/joml/Matrix4f;intermediary method_75421Lnet/minecraft/class_789;method_75421(Lnet/minecraft/class_789$class_12353;Z)Lorg/joml/Matrix4f;official aLhmf;a(Lhmf$b;Z)Lorg/joml/Matrix4f;
-
method_75422
- Mappings:
Namespace Name Mixin selector named method_75422Lnet/minecraft/client/render/model/json/ModelRotation;method_75422(Lorg/joml/Matrix4fc;)Lorg/joml/Vector3fc;intermediary method_75422Lnet/minecraft/class_789;method_75422(Lorg/joml/Matrix4fc;)Lorg/joml/Vector3fc;official aLhmf;a(Lorg/joml/Matrix4fc;)Lorg/joml/Vector3fc;
-
method_76651
- Mappings:
Namespace Name Mixin selector named method_76651Lnet/minecraft/client/render/model/json/ModelRotation;method_76651(Lorg/joml/Matrix4fc;Lnet/minecraft/util/math/Direction$Axis;Lorg/joml/Vector3f;)Fintermediary method_76651Lnet/minecraft/class_789;method_76651(Lorg/joml/Matrix4fc;Lnet/minecraft/class_2350$class_2351;Lorg/joml/Vector3f;)Fofficial aLhmf;a(Lorg/joml/Matrix4fc;Liz$a;Lorg/joml/Vector3f;)F
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
rescale
public boolean rescale()Returns the value of therescalerecord component.- Returns:
- the value of the
rescalerecord component
-
transform
Returns the value of thetransformrecord component.- Returns:
- the value of the
transformrecord component
-