Class CubeMesh
java.lang.Object
foundry.veil.api.client.necromancer.render.mesh.Mesh
foundry.veil.api.client.necromancer.render.mesh.CubeMesh
-
Nested Class Summary
Nested classes/interfaces inherited from class foundry.veil.api.client.necromancer.render.mesh.Mesh
Mesh.Face, Mesh.UV, Mesh.Vertex
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCube
(float xSize, float ySize, float zSize, float xOffset, float yOffset, float zOffset, float xInflate, float yInflate, float zInflate, float uOffset, float vOffset) addCube
(float xSize, float ySize, float zSize, float xOffset, float yOffset, float zOffset, float xInflate, float yInflate, float zInflate, float uOffset, float vOffset, boolean mirrored) addFace
(float normalX, float normalY, float normalZ, CubeMesh.FaceVertex... vertices) addTri
(float x1, float y1, float z1, float u1, float v1, float x2, float y2, float z2, float u2, float v2, float x3, float y3, float z3, float u3, float v3, float normalX, float normalY, float normalZ) void
render
(com.mojang.blaze3d.vertex.PoseStack pPoseStack, com.mojang.blaze3d.vertex.VertexConsumer pVertexConsumer, int pPackedLight, int pPackedOverlay, float pRed, float pGreen, float pBlue, float pAlpha)
-
Constructor Details
-
CubeMesh
public CubeMesh(int textureWidth, int textureHeight)
-
-
Method Details
-
addCube
public Mesh.Face[] addCube(float xSize, float ySize, float zSize, float xOffset, float yOffset, float zOffset, float xInflate, float yInflate, float zInflate, float uOffset, float vOffset) -
addCube
public Mesh.Face[] addCube(float xSize, float ySize, float zSize, float xOffset, float yOffset, float zOffset, float xInflate, float yInflate, float zInflate, float uOffset, float vOffset, boolean mirrored) -
addTri
public Mesh.Face addTri(float x1, float y1, float z1, float u1, float v1, float x2, float y2, float z2, float u2, float v2, float x3, float y3, float z3, float u3, float v3, float normalX, float normalY, float normalZ) -
addFace
public Mesh.Face addFace(float normalX, float normalY, float normalZ, CubeMesh.FaceVertex... vertices) -
render
public void render(com.mojang.blaze3d.vertex.PoseStack pPoseStack, com.mojang.blaze3d.vertex.VertexConsumer pVertexConsumer, int pPackedLight, int pPackedOverlay, float pRed, float pGreen, float pBlue, float pAlpha)
-