Package net.minecraft.client.model.geom
Record Class ModelPart.Vertex
java.lang.Object
java.lang.Record
net.minecraft.client.model.geom.ModelPart.Vertex
- Enclosing class:
ModelPart
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.joml.Vector3f
pos()
Returns the value of thepos
record component.remap
(float p_104385_, float p_104386_) final String
toString()
Returns a string representation of this record class.float
u()
Returns the value of theu
record component.float
v()
Returns the value of thev
record component.
-
Field Details
-
pos
private final org.joml.Vector3f posThe field for thepos
record component. -
u
private final float uThe field for theu
record component. -
v
private final float vThe field for thev
record component.
-
-
Constructor Details
-
Vertex
public Vertex(float p_104375_, float p_104376_, float p_104377_, float p_104378_, float p_104379_) -
Vertex
public Vertex(org.joml.Vector3f pos, float u, float v) Creates an instance of aVertex
record class.- Parameters:
pos
- the value for thepos
record componentu
- the value for theu
record componentv
- the value for thev
record component
-
-
Method Details
-
remap
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
pos
public org.joml.Vector3f pos()Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
u
public float u()Returns the value of theu
record component.- Returns:
- the value of the
u
record component
-
v
public float v()Returns the value of thev
record component.- Returns:
- the value of the
v
record component
-