Record Class ModelPart.Polygon
java.lang.Object
java.lang.Record
net.minecraft.client.model.geom.ModelPart.Polygon
- Enclosing class:
ModelPart
public static record ModelPart.Polygon(ModelPart.Vertex[] vertices, Vector3fc normal)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Vector3fcThe field for thenormalrecord component.private final ModelPart.Vertex[]The field for theverticesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPolygon(ModelPart.Vertex[] vertices, float u0, float v0, float u1, float v1, float xTexSize, float yTexSize, boolean mirror, Direction facing) Polygon(ModelPart.Vertex[] vertices, Vector3fc normal) Creates an instance of aPolygonrecord class. -
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.private static DirectionmirrorFacing(Direction facing) normal()Returns the value of thenormalrecord component.final StringtoString()Returns a string representation of this record class.vertices()Returns the value of theverticesrecord component.
-
Field Details
-
vertices
The field for theverticesrecord component. -
normal
The field for thenormalrecord component.
-
-
Constructor Details
-
Polygon
public Polygon(ModelPart.Vertex[] vertices, float u0, float v0, float u1, float v1, float xTexSize, float yTexSize, boolean mirror, Direction facing) -
Polygon
Creates an instance of aPolygonrecord class.- Parameters:
vertices- the value for theverticesrecord componentnormal- the value for thenormalrecord component
-
-
Method Details
-
mirrorFacing
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
vertices
Returns the value of theverticesrecord component.- Returns:
- the value of the
verticesrecord component
-
normal
Returns the value of thenormalrecord component.- Returns:
- the value of the
normalrecord component
-