Record Class ModelPart.Vertex

java.lang.Object
java.lang.Record
net.minecraft.client.model.ModelPart.Vertex
Record Components:
pos -
u -
v -
Enclosing class:
ModelPart

@Environment(CLIENT) public static record ModelPart.Vertex(Vector3f pos, float u, float v) extends Record
Mappings:
Namespace Name
named net/minecraft/client/model/ModelPart$Vertex
intermediary net/minecraft/class_630$class_618
official gen$c
named pos
intermediary comp_3186
official a
named u
intermediary comp_3187
official b
named v
intermediary comp_3188
official c
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Vector3f
    The field for the pos record component.
    private final float
    The field for the u record component.
    private final float
    The field for the v record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Vertex(float x, float y, float z, float u, float v)
     
    Vertex(Vector3f pos, float u, float v)
    Creates an instance of a Vertex record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    pos()
    Returns the value of the pos record component.
    remap(float u, float v)
     
    final String
    Returns a string representation of this record class.
    float
    u()
    Returns the value of the u record component.
    float
    v()
    Returns the value of the v record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • pos

      private final Vector3f pos
      The field for the pos record component.
    • u

      private final float u
      The field for the u record component.
    • v

      private final float v
      The field for the v record component.
  • Constructor Details

    • Vertex

      public Vertex(float x, float y, float z, float u, float v)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/model/ModelPart$Vertex;<init>(FFFFF)V
      intermediary <init> Lnet/minecraft/class_630$class_618;<init>(FFFFF)V
      official <init> Lgen$c;<init>(FFFFF)V
    • Vertex

      public Vertex(Vector3f pos, float u, float v)
      Creates an instance of a Vertex record class.
      Parameters:
      pos - the value for the pos record component
      u - the value for the u record component
      v - the value for the v record component
  • Method Details

    • remap

      public ModelPart.Vertex remap(float u, float v)
      Mappings:
      Namespace Name Mixin selector
      named remap Lnet/minecraft/client/model/ModelPart$Vertex;remap(FF)Lnet/minecraft/client/model/ModelPart$Vertex;
      intermediary method_2837 Lnet/minecraft/class_630$class_618;method_2837(FF)Lnet/minecraft/class_630$class_618;
      official a Lgen$c;a(FF)Lgen$c;
    • 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.
    • pos

      public Vector3f pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • u

      public float u()
      Returns the value of the u record component.
      Returns:
      the value of the u record component
    • v

      public float v()
      Returns the value of the v record component.
      Returns:
      the value of the v record component