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 fkjintermediary net/minecraft/class_789named net/minecraft/client/render/model/json/ModelRotationofficial aintermediary comp_1118named originofficial bintermediary comp_1119named axisofficial cintermediary comp_1120named angleofficial dintermediary comp_1121named rescale
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModelRotation(Vector3f vector3f, Direction.Axis axis, float angle, boolean rescale) -
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.origin()Returns the value of theoriginrecord component.booleanrescale()Returns the value of therescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
ModelRotation
- Mappings:
Namespace Name Mixin selector official <init>Lfkj;<init>(Lorg/joml/Vector3f;Lha$a;FZ)Vintermediary <init>Lnet/minecraft/class_789;<init>(Lorg/joml/Vector3f;Lnet/minecraft/class_2350$class_2351;FZ)Vnamed <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 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
-