DebugScreenProfile.java
net.minecraft.client.gui.components.debug.DebugScreenProfile
信息
- 全限定名:net.minecraft.client.gui.components.debug.DebugScreenProfile
- 类型:public enum
- 包:net.minecraft.client.gui.components.debug
- 源码路径:src/main/java/net/minecraft/client/gui/components/debug/DebugScreenProfile.java
- 起始行号:L8
- 实现:StringRepresentable
- 职责:
TODO
字段/常量
-
DEFAULT, PERFORMANCE- 类型:
DebugScreenProfile - 修饰符:
package-private - 源码定位:
L9 - 说明:
TODO
- 类型:
-
CODEC- 类型:
StringRepresentable.EnumCodec<DebugScreenProfile> - 修饰符:
public static final - 源码定位:
L12 - 说明:
TODO
- 类型:
-
name- 类型:
String - 修饰符:
private final - 源码定位:
L13 - 说明:
TODO
- 类型:
-
translationKey- 类型:
String - 修饰符:
private final - 源码定位:
L14 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
private DebugScreenProfile(String name, String translationKey) @ L16
- 构造器名:DebugScreenProfile
- 源码定位:L16
- 修饰符:private
参数:
- name: String
- translationKey: String
说明:
TODO
方法
下面的方法块按源码顺序生成。
public String translationKey() @ L21
- 方法名:translationKey
- 源码定位:L21
- 返回类型:String
- 修饰符:public
参数:
- 无
说明:
TODO
public String getSerializedName() @ L25
- 方法名:getSerializedName
- 源码定位:L25
- 返回类型:String
- 修饰符:public
参数:
- 无
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public enum DebugScreenProfile implements StringRepresentable {
DEFAULT("default", "debug.options.profile.default"),
PERFORMANCE("performance", "debug.options.profile.performance");
public static final StringRepresentable.EnumCodec<DebugScreenProfile> CODEC = StringRepresentable.fromEnum(DebugScreenProfile::values);
private final String name;
private final String translationKey;
private DebugScreenProfile(String name, String translationKey) {
this.name = name;
this.translationKey = translationKey;
}
public String translationKey() {
return this.translationKey;
}
@Override
public String getSerializedName() {
return this.name;
}
}引用的其他类
- StringRepresentable
- 引用位置:
字段/实现/方法调用 - 关联成员:
StringRepresentable.fromEnum()
- 引用位置: