Class PathfindingRenderer

java.lang.Object
net.minecraft.client.renderer.debug.PathfindingRenderer
All Implemented Interfaces:
DebugRenderer.SimpleDebugRenderer

public class PathfindingRenderer extends Object implements DebugRenderer.SimpleDebugRenderer
  • Field Details

  • Constructor Details

    • PathfindingRenderer

      public PathfindingRenderer()
  • Method Details

    • addPath

      public void addPath(int pEntityId, Path pPath, float pMaxDistanceToWaypoint)
    • render

      public void render(PoseStack pPoseStack, MultiBufferSource pBufferSource, double pCamX, double pCamY, double pCamZ)
      Specified by:
      render in interface DebugRenderer.SimpleDebugRenderer
    • renderPath

      public static void renderPath(PoseStack pPoseStack, MultiBufferSource pBuffer, Path pPath, float p_270841_, boolean p_270481_, boolean p_270748_, double pX, double pY, double pZ)
    • renderPathLine

      public static void renderPathLine(PoseStack pPoseStack, VertexConsumer pConsumer, Path pPath, double pX, double pY, double pZ)
    • distanceToCamera

      private static float distanceToCamera(BlockPos pPos, double pX, double pY, double pZ)