Class PlayerBodyPartGhostRenderer

java.lang.Object
net.xmx.velthoric.core.body.client.renderer.VxBodyRenderer<net.xmx.velthoric.core.body.VxBody>
net.timtaran.interactivemc.body.player.PlayerBodyPartGhostRenderer

@Environment(CLIENT) public class PlayerBodyPartGhostRenderer extends net.xmx.velthoric.core.body.client.renderer.VxBodyRenderer<net.xmx.velthoric.core.body.VxBody>
Renderer for player body part ghost rigid bodies.

Renders ghost bodies as white wireframe cubes to distinguish them from dynamic bodies.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(net.xmx.velthoric.core.body.VxBody body, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, float partialTicks, int packedLight, net.xmx.velthoric.core.body.client.VxRenderState renderState)
    Renders a player body part ghost rigid body as a white wireframe cube.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlayerBodyPartGhostRenderer

      public PlayerBodyPartGhostRenderer()
  • Method Details

    • render

      public void render(net.xmx.velthoric.core.body.VxBody body, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, float partialTicks, int packedLight, net.xmx.velthoric.core.body.client.VxRenderState renderState)
      Renders a player body part ghost rigid body as a white wireframe cube.
      Specified by:
      render in class net.xmx.velthoric.core.body.client.renderer.VxBodyRenderer<net.xmx.velthoric.core.body.VxBody>
      Parameters:
      body - the ghost body to render
      poseStack - the pose stack for transformations
      bufferSource - the buffer source for rendering
      partialTicks - the partial ticks for interpolation
      packedLight - the packed light value
      renderState - the render state containing transform and other data