@Environment(value=CLIENT) public class PathfindingDebugRenderer extends Object implements DebugRenderer.Renderer
Modifier and Type | Field and Description |
---|---|
private Map<Integer,Float> |
field_4617 |
private Map<Integer,Path> |
paths |
private Map<Integer,Long> |
pathTimes |
Constructor and Description |
---|
PathfindingDebugRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
addPath(int id,
Path path,
float float2) |
static void |
drawPath(Path path,
float nodeSize,
boolean bool,
boolean drawLabels,
double cameraX,
double cameraY,
double cameraZ) |
private static void |
drawPathInternal(Path path,
float nodeSize,
boolean bool,
boolean drawLabels,
double cameraX,
double cameraY,
double cameraZ) |
static void |
drawPathLines(Path path,
double cameraX,
double cameraY,
double cameraZ) |
private static float |
getManhattanDistance(BlockPos pos,
double x,
double y,
double z) |
void |
render(MatrixStack matrices,
VertexConsumerProvider vertexConsumers,
double cameraX,
double cameraY,
double cameraZ) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear
public void addPath(int id, Path path, float float2)
public void render(MatrixStack matrices, VertexConsumerProvider vertexConsumers, double cameraX, double cameraY, double cameraZ)
render
in interface DebugRenderer.Renderer
public static void drawPath(Path path, float nodeSize, boolean bool, boolean drawLabels, double cameraX, double cameraY, double cameraZ)
private static void drawPathInternal(Path path, float nodeSize, boolean bool, boolean drawLabels, double cameraX, double cameraY, double cameraZ)
public static void drawPathLines(Path path, double cameraX, double cameraY, double cameraZ)
private static float getManhattanDistance(BlockPos pos, double x, double y, double z)