package net.minecraft.client.gui.components.debug; import net.minecraft.util.StringRepresentable; import net.minecraft.util.StringRepresentable.EnumCodec; public enum DebugScreenProfile implements StringRepresentable { DEFAULT("default", "debug.options.profile.default"), PERFORMANCE("performance", "debug.options.profile.performance"); public static final EnumCodec CODEC = StringRepresentable.fromEnum(DebugScreenProfile::values); private final String name; private final String translationKey; private DebugScreenProfile(final String name, final String translationKey) { this.name = name; this.translationKey = translationKey; } public String translationKey() { return this.translationKey; } public String getSerializedName() { return this.name; } }