Record Class ModelRotation

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

@Environment(CLIENT) public record ModelRotation(Vector3fc origin, Direction.Axis axis, float angle, boolean rescale, Matrix4fc transform) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/ModelRotation
intermediary net/minecraft/class_789
official hkv
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
named transform
intermediary comp_5069
official e
  • Field Details

    • origin

      private final Vector3fc 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.
    • transform

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

      private static final Vector3fc field_63582
      Mappings:
      Namespace Name Mixin selector
      named field_63582 Lnet/minecraft/client/render/model/json/ModelRotation;field_63582:Lorg/joml/Vector3fc;
      intermediary field_63582 Lnet/minecraft/class_789;field_63582:Lorg/joml/Vector3fc;
      official f Lhkv;f:Lorg/joml/Vector3fc;
  • Constructor Details

    • ModelRotation

      public ModelRotation(Vector3fc vector3fc, Direction.Axis axis, float angle, boolean rescale)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/model/json/ModelRotation;<init>(Lorg/joml/Vector3fc;Lnet/minecraft/util/math/Direction$Axis;FZ)V
      intermediary <init> Lnet/minecraft/class_789;<init>(Lorg/joml/Vector3fc;Lnet/minecraft/class_2350$class_2351;FZ)V
      official <init> Lhkv;<init>(Lorg/joml/Vector3fc;Ljf$a;FZ)V
    • ModelRotation

      public ModelRotation(Vector3fc origin, Direction.Axis axis, float angle, boolean rescale, Matrix4fc transform)
      Creates an instance of a ModelRotation record class.
      Parameters:
      origin - the value for the origin record component
      axis - the value for the axis record component
      angle - the value for the angle record component
      rescale - the value for the rescale record component
      transform - the value for the transform record component
  • Method Details

    • method_75421

      private static Matrix4f method_75421(Direction.Axis axis, float float2, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      named method_75421 Lnet/minecraft/client/render/model/json/ModelRotation;method_75421(Lnet/minecraft/util/math/Direction$Axis;FZ)Lorg/joml/Matrix4f;
      intermediary method_75421 Lnet/minecraft/class_789;method_75421(Lnet/minecraft/class_2350$class_2351;FZ)Lorg/joml/Matrix4f;
      official a Lhkv;a(Ljf$a;FZ)Lorg/joml/Matrix4f;
    • method_75422

      private static Vector3fc method_75422(boolean bool, float float2, Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      named method_75422 Lnet/minecraft/client/render/model/json/ModelRotation;method_75422(ZFLnet/minecraft/util/math/Direction$Axis;)Lorg/joml/Vector3fc;
      intermediary method_75422 Lnet/minecraft/class_789;method_75422(ZFLnet/minecraft/class_2350$class_2351;)Lorg/joml/Vector3fc;
      official a Lhkv;a(ZFLjf$a;)Lorg/joml/Vector3fc;
    • 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
    • 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
    • transform

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