Record Class Transformation

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.Transformation
Record Components:
rotation -
translation -
scale -

@Environment(CLIENT) public record Transformation(Vector3fc rotation, Vector3fc translation, Vector3fc scale) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/Transformation
intermediary net/minecraft/class_804
official gtd
named rotation
intermediary comp_3747
official b
named translation
intermediary comp_3748
official c
named scale
intermediary comp_3749
official d
  • Field Details Link icon

    • rotation Link icon

      private final Vector3fc rotation
      The field for the rotation record component.
    • translation Link icon

      private final Vector3fc translation
      The field for the translation record component.
    • scale Link icon

      private final Vector3fc scale
      The field for the scale record component.
    • IDENTITY Link icon

      public static final Transformation IDENTITY
      Mappings:
      Namespace Name Mixin selector
      named IDENTITY Lnet/minecraft/client/render/model/json/Transformation;IDENTITY:Lnet/minecraft/client/render/model/json/Transformation;
      intermediary field_4284 Lnet/minecraft/class_804;field_4284:Lnet/minecraft/class_804;
      official a Lgtd;a:Lgtd;
  • Constructor Details Link icon

  • Method Details Link icon

    • apply Link icon

      public void apply(boolean leftHanded, MatrixStack.Entry entry)
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/client/render/model/json/Transformation;apply(ZLnet/minecraft/client/util/math/MatrixStack$Entry;)V
      intermediary method_23075 Lnet/minecraft/class_804;method_23075(ZLnet/minecraft/class_4587$class_4665;)V
      official a Lgtd;a(ZLfld$a;)V
    • toString Link icon

      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 Link icon

      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 Link icon

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

      public Vector3fc rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • translation Link icon

      public Vector3fc translation()
      Returns the value of the translation record component.
      Returns:
      the value of the translation record component
    • scale Link icon

      public Vector3fc scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component