java.lang.Object
foundry.veil.api.client.necromancer.render.mesh.Mesh
foundry.veil.api.client.necromancer.render.mesh.CubeMesh

public class CubeMesh extends Mesh
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     

    Nested classes/interfaces inherited from class foundry.veil.api.client.necromancer.render.mesh.Mesh

    Mesh.Face, Mesh.UV, Mesh.Vertex
  • Field Summary

    Fields inherited from class foundry.veil.api.client.necromancer.render.mesh.Mesh

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    CubeMesh(int textureWidth, int textureHeight)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addCube(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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)
      Specified by:
      render in class Mesh