Record Class ModelRotation
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelRotation
- Record Components:
origin-axis-angle-rescale-transform-
@Environment(CLIENT)
public record ModelRotation(Vector3fc origin, Direction.Axis axis, float angle, boolean rescale, Matrix4fc transform)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelRotationintermediary net/minecraft/class_789official hkvnamed originintermediary comp_1118official anamed axisintermediary comp_1119official bnamed angleintermediary comp_1120official cnamed rescaleintermediary comp_1121official dnamed transformintermediary comp_5069official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theanglerecord component.private final Direction.AxisThe field for theaxisrecord component.private static final Vector3fcprivate final Vector3fcThe field for theoriginrecord component.private final booleanThe field for therescalerecord component.private final Matrix4fcThe field for thetransformrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelRotation(Vector3fc vector3fc, Direction.Axis axis, float angle, boolean rescale) ModelRotation(Vector3fc origin, Direction.Axis axis, float angle, boolean rescale, Matrix4fc transform) Creates an instance of aModelRotationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatangle()Returns the value of theanglerecord component.axis()Returns the value of theaxisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.private static Matrix4fmethod_75421(Direction.Axis axis, float float2, boolean bool) private static Vector3fcmethod_75422(boolean bool, float float2, Direction.Axis axis) 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.
-
Field Details
-
origin
The field for theoriginrecord component. -
axis
The field for theaxisrecord component. -
angle
private final float angleThe field for theanglerecord component. -
rescale
private final boolean rescaleThe field for therescalerecord component. -
transform
The field for thetransformrecord component. -
field_63582
- Mappings:
Namespace Name Mixin selector named field_63582Lnet/minecraft/client/render/model/json/ModelRotation;field_63582:Lorg/joml/Vector3fc;intermediary field_63582Lnet/minecraft/class_789;field_63582:Lorg/joml/Vector3fc;official fLhkv;f:Lorg/joml/Vector3fc;
-
-
Constructor Details
-
ModelRotation
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/model/json/ModelRotation;<init>(Lorg/joml/Vector3fc;Lnet/minecraft/util/math/Direction$Axis;FZ)Vintermediary <init>Lnet/minecraft/class_789;<init>(Lorg/joml/Vector3fc;Lnet/minecraft/class_2350$class_2351;FZ)Vofficial <init>Lhkv;<init>(Lorg/joml/Vector3fc;Ljf$a;FZ)V
-
ModelRotation
public ModelRotation(Vector3fc origin, Direction.Axis axis, float angle, 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/util/math/Direction$Axis;FZ)Lorg/joml/Matrix4f;intermediary method_75421Lnet/minecraft/class_789;method_75421(Lnet/minecraft/class_2350$class_2351;FZ)Lorg/joml/Matrix4f;official aLhkv;a(Ljf$a;FZ)Lorg/joml/Matrix4f;
-
method_75422
- Mappings:
Namespace Name Mixin selector named method_75422Lnet/minecraft/client/render/model/json/ModelRotation;method_75422(ZFLnet/minecraft/util/math/Direction$Axis;)Lorg/joml/Vector3fc;intermediary method_75422Lnet/minecraft/class_789;method_75422(ZFLnet/minecraft/class_2350$class_2351;)Lorg/joml/Vector3fc;official aLhkv;a(ZFLjf$a;)Lorg/joml/Vector3fc;
-
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
-
axis
Returns the value of theaxisrecord component.- Returns:
- the value of the
axisrecord component
-
angle
public float angle()Returns the value of theanglerecord component.- Returns:
- the value of the
anglerecord 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
-