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 entityId, Path path, float maxDistanceToWaypoint)
    • render

      public void render(PoseStack poseStack, MultiBufferSource bufferSource, double camX, double camY, double camZ)
      Specified by:
      render in interface DebugRenderer.SimpleDebugRenderer
    • renderPath

      public static void renderPath(PoseStack poseStack, MultiBufferSource buffer, Path path, float p_270841_, boolean p_270481_, boolean p_270748_, double x, double y, double z)
    • renderPathLine

      public static void renderPathLine(PoseStack poseStack, VertexConsumer consumer, Path path, double x, double y, double z)
    • distanceToCamera

      private static float distanceToCamera(BlockPos pos, double x, double y, double z)