DebugScreenProfile .java

net.minecraft.client.gui.components.debug.DebugScreenProfile (enum): members: DEFAULT, PERFORMANCE, translationKey, getSerializedName, name, CODEC.

net.minecraft.client.gui.components.debugenum31 linesclient900 B

Implements

API Surface (2)

String translationKey()
String getSerializedName()

Fields & Constants (3)

CODEC
name
translationKey

String literals (4)

"default"
"debug.options.profile.default"
"performance"
"debug.options.profile.performance"

Code Graph: Dependencies (1)

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

Full Source

DebugScreenProfile.java31 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.util.StringRepresentable;
6
import net.minecraft.util.StringRepresentable.EnumCodec;
7
8
@Environment(EnvType.CLIENT)
9
public enum DebugScreenProfile implements StringRepresentable {
10
	DEFAULT("default", "debug.options.profile.default"),
11
	PERFORMANCE("performance", "debug.options.profile.performance");
12
13
	public static final EnumCodec<DebugScreenProfile> CODEC = StringRepresentable.fromEnum(DebugScreenProfile::values);
14
	private final String name;
15
	private final String translationKey;
16
17
	DebugScreenProfile(final String name, final String translationKey) {
18
		this.name = name;
19
		this.translationKey = translationKey;
20
	}
21
22
	public String translationKey() {
23
		return this.translationKey;
24
	}
25
26
	@Override
27
	public String getSerializedName() {
28
		return this.name;
29
	}
30
}
31

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