Package net.minecraft.client.model
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$Vertexintermediary net/minecraft/class_630$class_618official gkr$cnamed posintermediary comp_3186official anamed uintermediary comp_3187official bnamed vintermediary comp_3188official c
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.remap(float u, float v) final StringtoString()Returns a string representation of this record class.floatu()Returns the value of theurecord component.floatv()Returns the value of thevrecord component.
-
Field Details
-
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)Vintermediary <init>Lnet/minecraft/class_630$class_618;<init>(FFFFF)Vofficial <init>Lgkr$c;<init>(FFFFF)V
-
Vertex
Creates an instance of aVertexrecord class.
-
-
Method Details
-
remap
- Mappings:
Namespace Name Mixin selector named remapLnet/minecraft/client/model/ModelPart$Vertex;remap(FF)Lnet/minecraft/client/model/ModelPart$Vertex;intermediary method_2837Lnet/minecraft/class_630$class_618;method_2837(FF)Lnet/minecraft/class_630$class_618;official aLgkr$c;a(FF)Lgkr$c;
-
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
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
u
public float u()Returns the value of theurecord component.- Returns:
- the value of the
urecord component
-
v
public float v()Returns the value of thevrecord component.- Returns:
- the value of the
vrecord component
-