Record Class ModelRotation

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelRotation
Record Components:
origin -
value -
rescale -
transform -

@Environment(CLIENT) public record ModelRotation(Vector3fc origin, ModelRotation.class_12353 value, boolean rescale, Matrix4fc transform) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/ModelRotation
intermediary net/minecraft/class_789
official hqd
named origin
intermediary comp_1118
official a
named value
intermediary comp_5246
official b
named rescale
intermediary comp_1121
official c
named transform
intermediary comp_5069
official d
  • Field Details

    • origin

      private final Vector3fc origin
      The field for the origin record component.
    • value

      private final ModelRotation.class_12353 value
      The field for the value record component.
    • rescale

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

      private final Matrix4fc transform
      The field for the transform record component.
  • Constructor Details

  • Method Details

    • method_75421

      private static Matrix4f method_75421(ModelRotation.class_12353 class_12353, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      named method_75421 Lnet/minecraft/client/render/model/json/ModelRotation;method_75421(Lnet/minecraft/client/render/model/json/ModelRotation$class_12353;Z)Lorg/joml/Matrix4f;
      intermediary method_75421 Lnet/minecraft/class_789;method_75421(Lnet/minecraft/class_789$class_12353;Z)Lorg/joml/Matrix4f;
      official a Lhqd;a(Lhqd$b;Z)Lorg/joml/Matrix4f;
    • method_75422

      private static Vector3fc method_75422(Matrix4fc matrix4fc)
      Mappings:
      Namespace Name Mixin selector
      named method_75422 Lnet/minecraft/client/render/model/json/ModelRotation;method_75422(Lorg/joml/Matrix4fc;)Lorg/joml/Vector3fc;
      intermediary method_75422 Lnet/minecraft/class_789;method_75422(Lorg/joml/Matrix4fc;)Lorg/joml/Vector3fc;
      official a Lhqd;a(Lorg/joml/Matrix4fc;)Lorg/joml/Vector3fc;
    • method_76651

      private static float method_76651(Matrix4fc matrix4fc, Direction.Axis axis, Vector3f vector3f)
      Mappings:
      Namespace Name Mixin selector
      named method_76651 Lnet/minecraft/client/render/model/json/ModelRotation;method_76651(Lorg/joml/Matrix4fc;Lnet/minecraft/util/math/Direction$Axis;Lorg/joml/Vector3f;)F
      intermediary method_76651 Lnet/minecraft/class_789;method_76651(Lorg/joml/Matrix4fc;Lnet/minecraft/class_2350$class_2351;Lorg/joml/Vector3f;)F
      official a Lhqd;a(Lorg/joml/Matrix4fc;Liz$a;Lorg/joml/Vector3f;)F
    • 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 Vector3fc origin()
      Returns the value of the origin record component.
      Returns:
      the value of the origin record component
    • value

      public ModelRotation.class_12353 value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • rescale

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

      public Matrix4fc transform()
      Returns the value of the transform record component.
      Returns:
      the value of the transform record component