Record Class Face
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.render.obj.Face
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildVertices(com.mojang.blaze3d.vertex.BufferBuilder buffer, com.mojang.blaze3d.vertex.PoseStack poseStack) Overload that uses full white + opaque alpha.voidbuildVertices(com.mojang.blaze3d.vertex.BufferBuilder buffer, com.mojang.blaze3d.vertex.PoseStack poseStack, float r, float g, float b, float a) Emit this face's geometry directly intobuffer.final 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 renderType, int packedLight) Render this face via Minecraft'sMultiBufferSourcepipeline.final StringtoString()Returns a string representation of this record class.vertices()Returns the value of theverticesrecord component.
-
Constructor Details
-
Face
-
-
Method Details
-
buildVertices
public void buildVertices(com.mojang.blaze3d.vertex.BufferBuilder buffer, com.mojang.blaze3d.vertex.PoseStack poseStack, float r, float g, float b, float a) Emit this face's geometry directly intobuffer. Use this withMeshRenderer— the caller owns pipeline selection.- Parameters:
buffer- the activeBufferBuilderfrom aMeshRenderer.DrawSessionposeStack- current pose (for position / normal transformation)r- red [0–1]g- green [0–1]b- blue [0–1]a- alpha [0–1]
-
buildVertices
public void buildVertices(com.mojang.blaze3d.vertex.BufferBuilder buffer, com.mojang.blaze3d.vertex.PoseStack poseStack) Overload that uses full white + opaque alpha. -
renderFace
public void renderFace(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.rendertype.RenderType renderType, int packedLight) Render this face via Minecraft'sMultiBufferSourcepipeline. Use this when rendering entities, block entities, or items where aRenderTypeand packed light are provided by the game. -
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
-