Class PathfindingRenderer
java.lang.Object
net.minecraft.client.renderer.debug.PathfindingRenderer
- All Implemented Interfaces:
DebugRenderer.SimpleDebugRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final floatprivate static final intprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static floatdistanceToCamera(BlockPos pos, double x, double y, double z) voidrender(PoseStack p_113629_, MultiBufferSource p_113630_, double p_113631_, double p_113632_, double p_113633_, DebugValueAccess p_449626_, Frustum p_451102_) private static voidrenderPath(PoseStack poseStack, MultiBufferSource bufferSource, double x, double y, double z, Path path, float nodeSize) static voidrenderPath(PoseStack poseStack, MultiBufferSource bufferSource, Path path, float nodeSize, boolean renderDebugNodes, boolean renderDebugInfo, double x, double y, double z) static voidrenderPathLine(PoseStack poseStack, VertexConsumer consumer, Path path, double x, double y, double z)
-
Field Details
-
MAX_RENDER_DIST
private static final float MAX_RENDER_DIST- See Also:
-
MAX_TARGETING_DIST
private static final int MAX_TARGETING_DIST- See Also:
-
SHOW_ONLY_SELECTED
private static final boolean SHOW_ONLY_SELECTED- 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
-
render
public void render(PoseStack p_113629_, MultiBufferSource p_113630_, double p_113631_, double p_113632_, double p_113633_, DebugValueAccess p_449626_, Frustum p_451102_) - Specified by:
renderin interfaceDebugRenderer.SimpleDebugRenderer
-
renderPath
private static void renderPath(PoseStack poseStack, MultiBufferSource bufferSource, double x, double y, double z, Path path, float nodeSize) -
renderPath
public static void renderPath(PoseStack poseStack, MultiBufferSource bufferSource, Path path, float nodeSize, boolean renderDebugNodes, boolean renderDebugInfo, double x, double y, double z) -
renderPathLine
public static void renderPathLine(PoseStack poseStack, VertexConsumer consumer, Path path, double x, double y, double z) -
distanceToCamera
-