Record Class ModelPart.Quad

java.lang.Object
java.lang.Record
net.minecraft.client.model.ModelPart.Quad
Record Components:
vertices -
direction -
Enclosing class:
ModelPart

@Environment(CLIENT) public static record ModelPart.Quad(ModelPart.Vertex[] vertices, Vector3f direction) extends Record
Mappings:
Namespace Name
named net/minecraft/client/model/ModelPart$Quad
intermediary net/minecraft/class_630$class_593
official gen$b
named vertices
intermediary comp_3184
official a
named direction
intermediary comp_3185
official b
  • Field Details

  • Constructor Details

    • Quad

      public Quad(ModelPart.Vertex[] vertices, float u1, float v1, float u2, float v2, float squishU, float squishV, boolean flip, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/model/ModelPart$Quad;<init>([Lnet/minecraft/client/model/ModelPart$Vertex;FFFFFFZLnet/minecraft/util/math/Direction;)V
      intermediary <init> Lnet/minecraft/class_630$class_593;<init>([Lnet/minecraft/class_630$class_618;FFFFFFZLnet/minecraft/class_2350;)V
      official <init> Lgen$b;<init>([Lgen$c;FFFFFFZLjm;)V
    • Quad

      public Quad(ModelPart.Vertex[] vertex, Vector3f vector3f)
  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • vertices

      public ModelPart.Vertex[] vertices()
      Returns the value of the vertices record component.
      Returns:
      the value of the vertices record component
    • direction

      public Vector3f direction()
      Returns the value of the direction record component.
      Returns:
      the value of the direction record component