Record Class ModelRotation
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelRotation
- Record Components:
origin
-axis
-angle
-rescale
-
@Environment(CLIENT)
public record ModelRotation(Vector3f origin, Direction.Axis axis, float angle, boolean rescale)
extends Record
- Mappings:
Namespace Name official fku
intermediary net/minecraft/class_789
named net/minecraft/client/render/model/json/ModelRotation
official a
intermediary comp_1118
named origin
official b
intermediary comp_1119
named axis
official c
intermediary comp_1120
named angle
official d
intermediary comp_1121
named rescale
-
Field Summary
-
Constructor Summary
ConstructorDescriptionModelRotation
(Vector3f vector3f, Direction.Axis axis, float angle, boolean rescale) -
Method Summary
Modifier and TypeMethodDescriptionfloat
angle()
Returns the value of theangle
record component.axis()
Returns the value of theaxis
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.origin()
Returns the value of theorigin
record component.boolean
rescale()
Returns the value of therescale
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
ModelRotation
- Mappings:
Namespace Name Mixin selector official <init>
Lfku;<init>(Lorg/joml/Vector3f;Lha$a;FZ)V
intermediary <init>
Lnet/minecraft/class_789;<init>(Lorg/joml/Vector3f;Lnet/minecraft/class_2350$class_2351;FZ)V
named <init>
Lnet/minecraft/client/render/model/json/ModelRotation;<init>(Lorg/joml/Vector3f;Lnet/minecraft/util/math/Direction$Axis;FZ)V
-
-
Method Details
-
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 theorigin
record component.- Returns:
- the value of the
origin
record component
-
axis
Returns the value of theaxis
record component.- Returns:
- the value of the
axis
record component
-
angle
public float angle()Returns the value of theangle
record component.- Returns:
- the value of the
angle
record component
-
rescale
public boolean rescale()Returns the value of therescale
record component.- Returns:
- the value of the
rescale
record component
-