DebugEntryNoop .java

net.minecraft.client.gui.components.debug.DebugEntryNoop (class, 40 lines): members: isAllowedWithReducedDebugInfo, isAllowed, category, displayer.

net.minecraft.client.gui.components.debugclass40 linesclient1.0 KB

Implements

API Surface (3)

void display(final DebugScreenDisplayer displayer, final @Nullable Level serverOrClientLevel, final @Nullable LevelChunk clientChunk, final @Nullable LevelChunk serverChunk)
boolean isAllowed(final boolean reducedDebugInfo)
DebugEntryCategory category()

Fields & Constants (4)

isAllowedWithReducedDebugInfo
displayer
serverOrClientLevel
clientChunk

Code Graph: Dependencies (5)

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

Full Source

DebugEntryNoop.java40 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.gui.components.debug;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.minecraft.world.level.Level;
6
import net.minecraft.world.level.chunk.LevelChunk;
7
import org.jspecify.annotations.Nullable;
8
9
@Environment(EnvType.CLIENT)
10
public class DebugEntryNoop implements DebugScreenEntry {
11
	private final boolean isAllowedWithReducedDebugInfo;
12
13
	public DebugEntryNoop() {
14
		this(false);
15
	}
16
17
	public DebugEntryNoop(final boolean isAllowedWithReducedDebugInfo) {
18
		this.isAllowedWithReducedDebugInfo = isAllowedWithReducedDebugInfo;
19
	}
20
21
	@Override
22
	public void display(
23
		final DebugScreenDisplayer displayer,
24
		final @Nullable Level serverOrClientLevel,
25
		final @Nullable LevelChunk clientChunk,
26
		final @Nullable LevelChunk serverChunk
27
	) {
28
	}
29
30
	@Override
31
	public boolean isAllowed(final boolean reducedDebugInfo) {
32
		return this.isAllowedWithReducedDebugInfo || !reducedDebugInfo;
33
	}
34
35
	@Override
36
	public DebugEntryCategory category() {
37
		return DebugEntryCategory.RENDERER;
38
	}
39
}
40

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