Record Class Face
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.render.obj.Face
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildVerticesTextured(com.mojang.blaze3d.vertex.BufferBuilder buffer, com.mojang.blaze3d.vertex.PoseStack poseStack, float r, float g, float b, float a, int packedLight) voidbuildVerticesTextured(com.mojang.blaze3d.vertex.BufferBuilder buffer, com.mojang.blaze3d.vertex.PoseStack poseStack, int packedLight) final booleanIndicates whether some other object is "equal to" this one.org.joml.Vector3ffinal inthashCode()Returns a hash code value for this object.material()Returns the value of thematerialrecord component.voidrenderFace(com.mojang.blaze3d.vertex.PoseStack poseStack, int packedLight) voidrenderFace(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.rendertype.RenderType renderType, int packedLight) final StringtoString()Returns a string representation of this record class.vertices()Returns the value of theverticesrecord component.
-
Constructor Details
-
Face
-
Face
-
-
Method Details
-
buildVerticesTextured
public void buildVerticesTextured(com.mojang.blaze3d.vertex.BufferBuilder buffer, com.mojang.blaze3d.vertex.PoseStack poseStack, int packedLight) -
buildVerticesTextured
public void buildVerticesTextured(com.mojang.blaze3d.vertex.BufferBuilder buffer, com.mojang.blaze3d.vertex.PoseStack poseStack, float r, float g, float b, float a, int packedLight) -
renderFace
public void renderFace(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.rendertype.RenderType renderType, int packedLight) -
renderFace
public void renderFace(com.mojang.blaze3d.vertex.PoseStack poseStack, int packedLight) -
getCentroid
public org.joml.Vector3f getCentroid() -
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
-
material
Returns the value of thematerialrecord component.- Returns:
- the value of the
materialrecord component
-