Class ObjModel.Part
java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.model.ObjModel.Part
- Enclosing class:
ObjModel
A stretch of a model drawn as one: the faces under one
o, g or usemtl line. Draw parts
one at a time to give each its own texture, colour, light or pose.-
Method Summary
Modifier and TypeMethodDescriptionmaterial()Itsusemtlname, or an empty string.name()The object or group it belongs to ("default"if the file names none).voidrender(com.mojang.blaze3d.vertex.PoseStack.Pose pose, com.mojang.blaze3d.vertex.VertexConsumer consumer, int light, int overlay, int argb) Writes this part into a vertex consumer: each triangle as a quad with its last corner twice.voidsubmit(com.mojang.blaze3d.vertex.PoseStack pose, net.minecraft.client.renderer.SubmitNodeCollector collector, net.minecraft.client.renderer.rendertype.RenderType type, int light, int overlay, int argb) Hands this part to the game to draw; seeObjModel.submit(PoseStack, SubmitNodeCollector, RenderType, int, int, int).int
-
Method Details
-
name
The object or group it belongs to ("default"if the file names none). -
material
Itsusemtlname, or an empty string. -
triangles
public int triangles() -
submit
public void submit(com.mojang.blaze3d.vertex.PoseStack pose, net.minecraft.client.renderer.SubmitNodeCollector collector, net.minecraft.client.renderer.rendertype.RenderType type, int light, int overlay, int argb) Hands this part to the game to draw; seeObjModel.submit(PoseStack, SubmitNodeCollector, RenderType, int, int, int). -
render
public void render(com.mojang.blaze3d.vertex.PoseStack.Pose pose, com.mojang.blaze3d.vertex.VertexConsumer consumer, int light, int overlay, int argb) Writes this part into a vertex consumer: each triangle as a quad with its last corner twice.
-