DebugScreenEntries .java

net.minecraft.client.gui.components.debug.DebugScreenEntries (class): members: VISUALIZE_ENTITY_SUPPORTING_BLOCKS, SIMPLE_PERFORMANCE_IMPACTORS, FPS, TPS.

net.minecraft.client.gui.components.debugclass120 linesclient7.2 KB

API Surface (2)

Identifier register(final Identifier identifier, final DebugScreenEntry entry)
Map<Identifier, DebugScreenEntry> allEntries()

Fields & Constants (48)

ENTRIES_BY_ID
GAME_VERSION
FPS
TPS
MEMORY
DETAILED_MEMORY
SYSTEM_SPECS
LOOKING_AT_BLOCK_STATE
LOOKING_AT_BLOCK_TAGS
LOOKING_AT_FLUID_STATE
LOOKING_AT_FLUID_TAGS
LOOKING_AT_ENTITY
LOOKING_AT_ENTITY_TAGS
CHUNK_RENDER_STATS
CHUNK_GENERATION_STATS
ENTITY_RENDER_STATS
PARTICLE_RENDER_STATS
CHUNK_SOURCE_STATS
PLAYER_POSITION
PLAYER_SECTION_POSITION
PLAYER_SPEED
LIGHT_LEVELS
HEIGHTMAP
BIOME
LOCAL_DIFFICULTY
DAY_COUNT
ENTITY_SPAWN_COUNTS
SOUND_MOOD
SOUND_CACHE
POST_EFFECTS
ENTITY_HITBOXES
CHUNK_BORDERS
THREE_DIMENSIONAL_CROSSHAIR
CHUNK_SECTION_PATHS
GPU_UTILIZATION
SIMPLE_PERFORMANCE_IMPACTORS
CHUNK_SECTION_OCTREE
VISUALIZE_WATER_LEVELS
VISUALIZE_HEIGHTMAP
VISUALIZE_COLLISION_BOXES
VISUALIZE_ENTITY_SUPPORTING_BLOCKS
VISUALIZE_BLOCK_LIGHT_LEVELS
VISUALIZE_SKY_LIGHT_LEVELS
VISUALIZE_SOLID_FACES
VISUALIZE_CHUNKS_ON_SERVER
VISUALIZE_SKY_LIGHT_SECTIONS
CHUNK_SECTION_VISIBILITY
PROFILES

String literals (44)

"game_version"
"memory"
"detailed_memory"
"system_specs"
"looking_at_block_state"
"looking_at_block_tags"
"looking_at_fluid_state"
"looking_at_fluid_tags"
"looking_at_entity"
"looking_at_entity_tags"
"chunk_render_stats"
"chunk_generation_stats"
"entity_render_stats"
"particle_render_stats"
"chunk_source_stats"
"player_position"
"player_section_position"
"player_speed"
"light_levels"
"heightmap"
"biome"
"local_difficulty"
"day_count"
"entity_spawn_counts"

Code Graph: Dependencies (4)

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

Full Source

DebugScreenEntries.java120 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.gui.components.debug;
2
3
import java.util.HashMap;
4
import java.util.Map;
5
import net.fabricmc.api.EnvType;
6
import net.fabricmc.api.Environment;
7
import net.minecraft.resources.Identifier;
8
import org.jspecify.annotations.Nullable;
9
10
/**
11
 * Access widened by fabric-transitive-access-wideners-v1 to accessible
12
 */
13
@Environment(EnvType.CLIENT)
14
public class DebugScreenEntries {
15
	private static final Map<Identifier, DebugScreenEntry> ENTRIES_BY_ID = new HashMap<>();
16
	public static final Identifier GAME_VERSION = register("game_version", new DebugEntryVersion());
17
	public static final Identifier FPS = register("fps", new DebugEntryFps());
18
	public static final Identifier TPS = register("tps", new DebugEntryTps());
19
	public static final Identifier MEMORY = register("memory", new DebugEntryMemory());
20
	public static final Identifier DETAILED_MEMORY = register("detailed_memory", new DebugEntryDetailedMemory());
21
	public static final Identifier SYSTEM_SPECS = register("system_specs", new DebugEntrySystemSpecs());
22
	public static final Identifier LOOKING_AT_BLOCK_STATE = register("looking_at_block_state", new DebugEntryLookingAt.BlockStateInfo());
23
	public static final Identifier LOOKING_AT_BLOCK_TAGS = register("looking_at_block_tags", new DebugEntryLookingAt.BlockTagInfo());
24
	public static final Identifier LOOKING_AT_FLUID_STATE = register("looking_at_fluid_state", new DebugEntryLookingAt.FluidStateInfo());
25
	public static final Identifier LOOKING_AT_FLUID_TAGS = register("looking_at_fluid_tags", new DebugEntryLookingAt.FluidTagInfo());
26
	public static final Identifier LOOKING_AT_ENTITY = register("looking_at_entity", new DebugEntryLookingAtEntity());
27
	public static final Identifier LOOKING_AT_ENTITY_TAGS = register("looking_at_entity_tags", new DebugEntryLookingAtEntityTags());
28
	public static final Identifier CHUNK_RENDER_STATS = register("chunk_render_stats", new DebugEntryChunkRenderStats());
29
	public static final Identifier CHUNK_GENERATION_STATS = register("chunk_generation_stats", new DebugEntryChunkGeneration());
30
	public static final Identifier ENTITY_RENDER_STATS = register("entity_render_stats", new DebugEntryEntityRenderStats());
31
	public static final Identifier PARTICLE_RENDER_STATS = register("particle_render_stats", new DebugEntryParticleRenderStats());
32
	public static final Identifier CHUNK_SOURCE_STATS = register("chunk_source_stats", new DebugEntryChunkSourceStats());
33
	public static final Identifier PLAYER_POSITION = register("player_position", new DebugEntryPosition());
34
	public static final Identifier PLAYER_SECTION_POSITION = register("player_section_position", new DebugEntrySectionPosition());
35
	public static final Identifier PLAYER_SPEED = register("player_speed", new DebugEntryPlayerSpeed());
36
	public static final Identifier LIGHT_LEVELS = register("light_levels", new DebugEntryLight());
37
	public static final Identifier HEIGHTMAP = register("heightmap", new DebugEntryHeightmap());
38
	public static final Identifier BIOME = register("biome", new DebugEntryBiome());
39
	public static final Identifier LOCAL_DIFFICULTY = register("local_difficulty", new DebugEntryLocalDifficulty());
40
	public static final Identifier DAY_COUNT = register("day_count", new DebugEntryDayCount());
41
	public static final Identifier ENTITY_SPAWN_COUNTS = register("entity_spawn_counts", new DebugEntrySpawnCounts());
42
	public static final Identifier SOUND_MOOD = register("sound_mood", new DebugEntrySoundMood());
43
	public static final Identifier SOUND_CACHE = register("sound_cache", new DebugEntrySoundCache());
44
	public static final Identifier POST_EFFECTS = register("post_effects", new DebugEntryPostEffects());
45
	public static final Identifier ENTITY_HITBOXES = register("entity_hitboxes", new DebugEntryNoop());
46
	public static final Identifier CHUNK_BORDERS = register("chunk_borders", new DebugEntryNoop());
47
	public static final Identifier THREE_DIMENSIONAL_CROSSHAIR = register("3d_crosshair", new DebugEntryNoop());
48
	public static final Identifier CHUNK_SECTION_PATHS = register("chunk_section_paths", new DebugEntryNoop());
49
	public static final Identifier GPU_UTILIZATION = register("gpu_utilization", new DebugEntryGpuUtilization());
50
	public static final Identifier SIMPLE_PERFORMANCE_IMPACTORS = register("simple_performance_impactors", new DebugEntrySimplePerformanceImpactors());
51
	public static final Identifier CHUNK_SECTION_OCTREE = register("chunk_section_octree", new DebugEntryNoop());
52
	public static final Identifier VISUALIZE_WATER_LEVELS = register("visualize_water_levels", new DebugEntryNoop());
53
	public static final Identifier VISUALIZE_HEIGHTMAP = register("visualize_heightmap", new DebugEntryNoop());
54
	public static final Identifier VISUALIZE_COLLISION_BOXES = register("visualize_collision_boxes", new DebugEntryNoop());
55
	public static final Identifier VISUALIZE_ENTITY_SUPPORTING_BLOCKS = register("visualize_entity_supporting_blocks", new DebugEntryNoop());
56
	public static final Identifier VISUALIZE_BLOCK_LIGHT_LEVELS = register("visualize_block_light_levels", new DebugEntryNoop());
57
	public static final Identifier VISUALIZE_SKY_LIGHT_LEVELS = register("visualize_sky_light_levels", new DebugEntryNoop());
58
	public static final Identifier VISUALIZE_SOLID_FACES = register("visualize_solid_faces", new DebugEntryNoop());
59
	public static final Identifier VISUALIZE_CHUNKS_ON_SERVER = register("visualize_chunks_on_server", new DebugEntryNoop());
60
	public static final Identifier VISUALIZE_SKY_LIGHT_SECTIONS = register("visualize_sky_light_sections", new DebugEntryNoop());
61
	public static final Identifier CHUNK_SECTION_VISIBILITY = register("chunk_section_visibility", new DebugEntryNoop());
62
	public static final Map<DebugScreenProfile, Map<Identifier, DebugScreenEntryStatus>> PROFILES;
63
64
	private static Identifier register(final String id, final DebugScreenEntry entry) {
65
		return register(Identifier.withDefaultNamespace(id), entry);
66
	}
67
68
	/**
69
	 * Access widened by fabric-transitive-access-wideners-v1 to accessible
70
	 */
71
	public static Identifier register(final Identifier identifier, final DebugScreenEntry entry) {
72
		ENTRIES_BY_ID.put(identifier, entry);
73
		return identifier;
74
	}
75
76
	public static Map<Identifier, DebugScreenEntry> allEntries() {
77
		return Map.copyOf(ENTRIES_BY_ID);
78
	}
79
80
	public static @Nullable DebugScreenEntry getEntry(final Identifier id) {
81
		return ENTRIES_BY_ID.get(id);
82
	}
83
84
	static {
85
		Map<Identifier, DebugScreenEntryStatus> defaultProfile = Map.of(
86
			THREE_DIMENSIONAL_CROSSHAIR,
87
			DebugScreenEntryStatus.IN_OVERLAY,
88
			GAME_VERSION,
89
			DebugScreenEntryStatus.IN_OVERLAY,
90
			TPS,
91
			DebugScreenEntryStatus.IN_OVERLAY,
92
			FPS,
93
			DebugScreenEntryStatus.IN_OVERLAY,
94
			MEMORY,
95
			DebugScreenEntryStatus.IN_OVERLAY,
96
			SYSTEM_SPECS,
97
			DebugScreenEntryStatus.IN_OVERLAY,
98
			PLAYER_POSITION,
99
			DebugScreenEntryStatus.IN_OVERLAY,
100
			PLAYER_SECTION_POSITION,
101
			DebugScreenEntryStatus.IN_OVERLAY,
102
			SIMPLE_PERFORMANCE_IMPACTORS,
103
			DebugScreenEntryStatus.IN_OVERLAY
104
		);
105
		Map<Identifier, DebugScreenEntryStatus> performance = Map.of(
106
			TPS,
107
			DebugScreenEntryStatus.IN_OVERLAY,
108
			FPS,
109
			DebugScreenEntryStatus.ALWAYS_ON,
110
			GPU_UTILIZATION,
111
			DebugScreenEntryStatus.IN_OVERLAY,
112
			MEMORY,
113
			DebugScreenEntryStatus.IN_OVERLAY,
114
			SIMPLE_PERFORMANCE_IMPACTORS,
115
			DebugScreenEntryStatus.IN_OVERLAY
116
		);
117
		PROFILES = Map.of(DebugScreenProfile.DEFAULT, defaultProfile, DebugScreenProfile.PERFORMANCE, performance);
118
	}
119
}
120

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