Class WireframeRenderer

java.lang.Object
net.timtaran.interactivemc.util.client.render.WireframeRenderer

public class WireframeRenderer extends Object
  • Constructor Details

    • WireframeRenderer

      public WireframeRenderer()
  • Method Details

    • renderUnitCubeWireframe

      public static void renderUnitCubeWireframe(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight, float r, float g, float b, float a)
      Renders a unit cube wireframe with the specified color.

      This method draws all 12 edges of a unit cube from (0,0,0) to (1,1,1). The pose stack should be positioned and scaled appropriately before calling this method.

      Parameters:
      poseStack - the pose stack for transformations
      bufferSource - the buffer source for rendering
      packedLight - the packed light value
      r - the red color component (0.0 to 1.0)
      g - the green color component (0.0 to 1.0)
      b - the blue color component (0.0 to 1.0)
      a - the alpha component (0.0 to 1.0)