EntityBlockIntersectionDebugRenderer .java

net.minecraft.client.renderer.debug.EntityBlockIntersectionDebugRenderer (class): members: PADDING, frustum, emitGizmos. imports: GizmoStyle, Gizmos.

net.minecraft.client.renderer.debugclass22 linesclient858 B

Implements

API Surface (1)

void emitGizmos(final double camX, final double camY, final double camZ, final DebugValueAccess debugValues, final Frustum frustum, final float partialTicks)

Fields & Constants (2)

PADDING
frustum

Code Graph: Dependencies (6)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

EntityBlockIntersectionDebugRenderer.java22 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.renderer.debug;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.minecraft.client.renderer.culling.Frustum;
6
import net.minecraft.gizmos.GizmoStyle;
7
import net.minecraft.gizmos.Gizmos;
8
import net.minecraft.util.debug.DebugSubscriptions;
9
import net.minecraft.util.debug.DebugValueAccess;
10
11
@Environment(EnvType.CLIENT)
12
public class EntityBlockIntersectionDebugRenderer implements DebugRenderer.SimpleDebugRenderer {
13
	private static final float PADDING = 0.02F;
14
15
	@Override
16
	public void emitGizmos(
17
		final double camX, final double camY, final double camZ, final DebugValueAccess debugValues, final Frustum frustum, final float partialTicks
18
	) {
19
		debugValues.forEachBlock(DebugSubscriptions.ENTITY_BLOCK_INTERSECTIONS, (pos, type) -> Gizmos.cuboid(pos, 0.02F, GizmoStyle.fill(type.color())));
20
	}
21
}
22

Decompiled Minecraft 26.3 source of EntityBlockIntersectionDebugRenderer (net/minecraft/client/renderer/debug/EntityBlockIntersectionDebugRenderer.java) with Mojang official mappings, stored verbatim on the site.