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 gmu
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 Details

    • origin

      private final Vector3f origin
      The field for the origin record component.
    • axis

      private final Direction.Axis axis
      The field for the axis record component.
    • angle

      private final float angle
      The field for the angle record component.
    • rescale

      private final boolean rescale
      The field for the rescale record component.
  • Constructor Details

    • ModelRotation

      public ModelRotation(Vector3f vector3f, Direction.Axis axis, float angle, boolean rescale)
      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> Lgmu;<init>(Lorg/joml/Vector3f;Ljm$a;FZ)V
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • origin

      public Vector3f origin()
      Returns the value of the origin record component.
      Returns:
      the value of the origin record component
    • axis

      public Direction.Axis axis()
      Returns the value of the axis record component.
      Returns:
      the value of the axis record component
    • angle

      public float angle()
      Returns the value of the angle record component.
      Returns:
      the value of the angle record component
    • rescale

      public boolean rescale()
      Returns the value of the rescale record component.
      Returns:
      the value of the rescale record component