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 -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(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.
-
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:
renderin classnet.xmx.velthoric.core.body.client.renderer.VxBodyRenderer<net.xmx.velthoric.core.body.VxBody>- Parameters:
body- the ghost body to renderposeStack- the pose stack for transformationsbufferSource- the buffer source for renderingpartialTicks- the partial ticks for interpolationpackedLight- the packed light valuerenderState- the render state containing transform and other data
-