VillageSectionsDebugRenderer .java

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

net.minecraft.client.renderer.debugclass25 linesclient973 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 (1)

frustum

Full Source

VillageSectionsDebugRenderer.java25 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.core.SectionPos;
7
import net.minecraft.gizmos.GizmoStyle;
8
import net.minecraft.gizmos.Gizmos;
9
import net.minecraft.util.ARGB;
10
import net.minecraft.util.debug.DebugSubscriptions;
11
import net.minecraft.util.debug.DebugValueAccess;
12
13
@Environment(EnvType.CLIENT)
14
public class VillageSectionsDebugRenderer implements DebugRenderer.SimpleDebugRenderer {
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.VILLAGE_SECTIONS, (pos, ignored) -> {
20
			SectionPos villageSection = SectionPos.of(pos);
21
			Gizmos.cuboid(villageSection.center(), GizmoStyle.fill(ARGB.colorFromFloat(0.15F, 0.2F, 1.0F, 0.2F)));
22
		});
23
	}
24
}
25

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