Record Class ModelElementRotation
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelElementRotation
- Record Components:
origin-value-rescale-transform-
@Environment(CLIENT)
public record ModelElementRotation(Vector3fc origin, ModelElementRotation.RotationValue value, boolean rescale, Matrix4fc transform)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelElementRotationintermediary net/minecraft/class_789official hqdnamed 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 final recordstatic interface -
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 ModelElementRotation.RotationValueThe field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelElementRotation(Vector3fc origin, ModelElementRotation.RotationValue value, boolean rescale) ModelElementRotation(Vector3fc origin, ModelElementRotation.RotationValue value, boolean rescale, Matrix4fc transform) Creates an instance of aModelElementRotationrecord 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.origin()Returns the value of theoriginrecord component.booleanrescale()Returns the value of therescalerecord component.private static Vector3fcprivate static floatscale(Matrix4fc matrix, Direction.Axis axis, Vector3f vec) final StringtoString()Returns a string representation of this record class.Returns the value of thetransformrecord component.private static Matrix4ftransform(ModelElementRotation.RotationValue value, boolean rescale) value()Returns the value of thevaluerecord component.
-
Field Details
-
Constructor Details
-
ModelElementRotation
public ModelElementRotation(Vector3fc origin, ModelElementRotation.RotationValue value, boolean rescale) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/model/json/ModelElementRotation;<init>(Lorg/joml/Vector3fc;Lnet/minecraft/client/render/model/json/ModelElementRotation$RotationValue;Z)Vintermediary <init>Lnet/minecraft/class_789;<init>(Lorg/joml/Vector3fc;Lnet/minecraft/class_789$class_12353;Z)Vofficial <init>Lhqd;<init>(Lorg/joml/Vector3fc;Lhqd$b;Z)V
-
ModelElementRotation
public ModelElementRotation(Vector3fc origin, ModelElementRotation.RotationValue value, boolean rescale, Matrix4fc transform) Creates an instance of aModelElementRotationrecord class.
-
-
Method Details
-
transform
- Mappings:
Namespace Name Mixin selector named transformLnet/minecraft/client/render/model/json/ModelElementRotation;transform(Lnet/minecraft/client/render/model/json/ModelElementRotation$RotationValue;Z)Lorg/joml/Matrix4f;intermediary method_75421Lnet/minecraft/class_789;method_75421(Lnet/minecraft/class_789$class_12353;Z)Lorg/joml/Matrix4f;official aLhqd;a(Lhqd$b;Z)Lorg/joml/Matrix4f;
-
scale
- Mappings:
Namespace Name Mixin selector named scaleLnet/minecraft/client/render/model/json/ModelElementRotation;scale(Lorg/joml/Matrix4fc;)Lorg/joml/Vector3fc;intermediary method_75422Lnet/minecraft/class_789;method_75422(Lorg/joml/Matrix4fc;)Lorg/joml/Vector3fc;official aLhqd;a(Lorg/joml/Matrix4fc;)Lorg/joml/Vector3fc;
-
scale
- Mappings:
Namespace Name Mixin selector named scaleLnet/minecraft/client/render/model/json/ModelElementRotation;scale(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 aLhqd;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
-