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 - named - net/minecraft/client/render/model/json/ModelRotation- intermediary - net/minecraft/class_789- official - gsw- named - origin- intermediary - comp_1118- official - a- named - axis- intermediary - comp_1119- official - b- named - angle- intermediary - comp_1120- official - c- named - rescale- intermediary - comp_1121- official - d
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionModelRotation(Vector3f vector3f, Direction.Axis axis, float angle, boolean rescale) 
- 
Method SummaryModifier 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 - named - <init>- Lnet/minecraft/client/render/model/json/ModelRotation;<init>(Lorg/joml/Vector3f;Lnet/minecraft/util/math/Direction$Axis;FZ)V- intermediary - <init>- Lnet/minecraft/class_789;<init>(Lorg/joml/Vector3f;Lnet/minecraft/class_2350$class_2351;FZ)V- official - <init>- Lgsw;<init>(Lorg/joml/Vector3f;Ljc$a;FZ)V
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
originReturns the value of theoriginrecord component.- Returns:
- the value of the originrecord component
 
- 
axisReturns the value of theaxisrecord component.- Returns:
- the value of the axisrecord component
 
- 
anglepublic float angle()Returns the value of theanglerecord component.- Returns:
- the value of the anglerecord component
 
- 
rescalepublic boolean rescale()Returns the value of therescalerecord component.- Returns:
- the value of the rescalerecord component
 
 
-