Class PathfindingRenderer
java.lang.Object
net.minecraft.client.renderer.debug.PathfindingRenderer
- All Implemented Interfaces:
DebugRenderer.SimpleDebugRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final float
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final float
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private static float
distanceToCamera
(BlockPos pos, double x, double y, double z) void
render
(PoseStack poseStack, MultiBufferSource bufferSource, double camX, double camY, double camZ) static void
renderPath
(PoseStack poseStack, MultiBufferSource buffer, Path path, float p_270841_, boolean p_270481_, boolean p_270748_, double x, double y, double z) static void
renderPathLine
(PoseStack poseStack, VertexConsumer consumer, Path path, double x, double y, double z) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.renderer.debug.DebugRenderer.SimpleDebugRenderer
clear
-
Field Details
-
pathMap
-
pathMaxDist
-
creationMap
-
TIMEOUT
private static final long TIMEOUT- See Also:
-
MAX_RENDER_DIST
private static final float MAX_RENDER_DIST- See Also:
-
SHOW_OPEN_CLOSED
private static final boolean SHOW_OPEN_CLOSED- See Also:
-
SHOW_OPEN_CLOSED_COST_MALUS
private static final boolean SHOW_OPEN_CLOSED_COST_MALUS- See Also:
-
SHOW_OPEN_CLOSED_NODE_TYPE_WITH_TEXT
private static final boolean SHOW_OPEN_CLOSED_NODE_TYPE_WITH_TEXT- See Also:
-
SHOW_OPEN_CLOSED_NODE_TYPE_WITH_BOX
private static final boolean SHOW_OPEN_CLOSED_NODE_TYPE_WITH_BOX- See Also:
-
SHOW_GROUND_LABELS
private static final boolean SHOW_GROUND_LABELS- See Also:
-
TEXT_SCALE
private static final float TEXT_SCALE- See Also:
-
-
Constructor Details
-
PathfindingRenderer
public PathfindingRenderer()
-
-
Method Details
-
addPath
-
render
public void render(PoseStack poseStack, MultiBufferSource bufferSource, double camX, double camY, double camZ) - Specified by:
render
in interfaceDebugRenderer.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
-