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