Record Class Face
java.lang.Object
java.lang.Record
team.lodestar.lodestone.systems.model.obj.Face
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.joml.Vector3ffinal inthashCode()Returns a hash code value for this object.voidrenderFace(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.RenderType renderType, int packedLight) voidrenderQuad(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight) voidrenderTriangle(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight) final StringtoString()Returns a string representation of this record class.vertices()Returns the value of theverticesrecord component.
-
Constructor Details
-
Face
Creates an instance of aFacerecord class.- Parameters:
vertices- the value for theverticesrecord component
-
-
Method Details
-
renderFace
public void renderFace(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.RenderType renderType, int packedLight) -
renderTriangle
public void renderTriangle(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight) -
renderQuad
public void renderQuad(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight) -
getCentroid
public org.joml.Vector3f getCentroid() -
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. 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
-