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.List<org.joml.Vector3f>normals()Returns the value of thenormalsrecord component.voidrenderFace(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer buffer, 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.List<net.minecraft.world.phys.Vec2>uvs()Returns the value of theuvsrecord component.List<org.joml.Vector3f>vertices()Returns the value of theverticesrecord component.
-
Constructor Details
-
Face
public Face(List<org.joml.Vector3f> vertices, List<org.joml.Vector3f> normals, List<net.minecraft.world.phys.Vec2> uvs) Creates an instance of aFacerecord class.- Parameters:
vertices- the value for theverticesrecord componentnormals- the value for thenormalsrecord componentuvs- the value for theuvsrecord component
-
-
Method Details
-
renderFace
public void renderFace(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer buffer, 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
-
normals
Returns the value of thenormalsrecord component.- Returns:
- the value of the
normalsrecord component
-
uvs
Returns the value of theuvsrecord component.- Returns:
- the value of the
uvsrecord component
-