package net.minecraft.client.gui.components.debug;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.util.StringRepresentable;
import net.minecraft.util.StringRepresentable.EnumCodec;

@Environment(EnvType.CLIENT)
public enum DebugScreenProfile implements StringRepresentable {
	DEFAULT("default", "debug.options.profile.default"),
	PERFORMANCE("performance", "debug.options.profile.performance");

	public static final EnumCodec<DebugScreenProfile> CODEC = StringRepresentable.fromEnum(DebugScreenProfile::values);
	private final String name;
	private final String translationKey;

	DebugScreenProfile(final String name, final String translationKey) {
		this.name = name;
		this.translationKey = translationKey;
	}

	public String translationKey() {
		return this.translationKey;
	}

	@Override
	public String getSerializedName() {
		return this.name;
	}
}
