Record Class ModelElementRotation

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

@Environment(CLIENT) public record ModelElementRotation(Vector3fc origin, ModelElementRotation.RotationValue value, boolean rescale, Matrix4fc transform) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/ModelElementRotation
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

  • Constructor Details

    • ModelElementRotation

      public ModelElementRotation(Vector3fc origin, ModelElementRotation.RotationValue value, boolean rescale)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/model/json/ModelElementRotation;<init>(Lorg/joml/Vector3fc;Lnet/minecraft/client/render/model/json/ModelElementRotation$RotationValue;Z)V
      intermediary <init> Lnet/minecraft/class_789;<init>(Lorg/joml/Vector3fc;Lnet/minecraft/class_789$class_12353;Z)V
      official <init> Lhqd;<init>(Lorg/joml/Vector3fc;Lhqd$b;Z)V
    • ModelElementRotation

      public ModelElementRotation(Vector3fc origin, ModelElementRotation.RotationValue value, boolean rescale, Matrix4fc transform)
      Creates an instance of a ModelElementRotation record class.
      Parameters:
      origin - the value for the origin record component
      value - the value for the value record component
      rescale - the value for the rescale record component
      transform - the value for the transform record component
  • Method Details

    • transform

      private static Matrix4f transform(ModelElementRotation.RotationValue value, boolean rescale)
      Mappings:
      Namespace Name Mixin selector
      named transform Lnet/minecraft/client/render/model/json/ModelElementRotation;transform(Lnet/minecraft/client/render/model/json/ModelElementRotation$RotationValue;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;
    • scale

      private static Vector3fc scale(Matrix4fc matrix)
      Mappings:
      Namespace Name Mixin selector
      named scale Lnet/minecraft/client/render/model/json/ModelElementRotation;scale(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;
    • scale

      private static float scale(Matrix4fc matrix, Direction.Axis axis, Vector3f vec)
      Mappings:
      Namespace Name Mixin selector
      named scale Lnet/minecraft/client/render/model/json/ModelElementRotation;scale(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

      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