DebugEntrySimplePerformanceImpactors.java
net.minecraft.client.gui.components.debug.DebugEntrySimplePerformanceImpactors
信息
- 全限定名:net.minecraft.client.gui.components.debug.DebugEntrySimplePerformanceImpactors
- 类型:public class
- 包:net.minecraft.client.gui.components.debug
- 源码路径:src/main/java/net/minecraft/client/gui/components/debug/DebugEntrySimplePerformanceImpactors.java
- 起始行号:L15
- 实现:DebugScreenEntry
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public void display(DebugScreenDisplayer displayer, Level serverOrClientLevel, LevelChunk clientChunk, LevelChunk serverChunk) @ L16
- 方法名:display
- 源码定位:L16
- 返回类型:void
- 修饰符:public
参数:
- displayer: DebugScreenDisplayer
- serverOrClientLevel: Level
- clientChunk: LevelChunk
- serverChunk: LevelChunk
说明:
TODO
public boolean isAllowed(boolean reducedDebugInfo) @ L37
- 方法名:isAllowed
- 源码定位:L37
- 返回类型:boolean
- 修饰符:public
参数:
- reducedDebugInfo: boolean
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public class DebugEntrySimplePerformanceImpactors implements DebugScreenEntry {
@Override
public void display(DebugScreenDisplayer displayer, @Nullable Level serverOrClientLevel, @Nullable LevelChunk clientChunk, @Nullable LevelChunk serverChunk) {
Minecraft minecraft = Minecraft.getInstance();
Options options = minecraft.options;
displayer.addLine(
String.format(
Locale.ROOT,
"%s%sB: %d",
options.improvedTransparency().get() ? "improved-transparency " : "",
options.cloudStatus().get() == CloudStatus.OFF ? "" : (options.cloudStatus().get() == CloudStatus.FAST ? "fast-clouds " : "fancy-clouds "),
options.biomeBlendRadius().get()
)
);
TextureFilteringMethod filteringMethod = options.textureFiltering().get();
if (filteringMethod == TextureFilteringMethod.ANISOTROPIC) {
displayer.addLine(String.format(Locale.ROOT, "Filtering: %s %dx", filteringMethod.caption().getString(), options.maxAnisotropyValue()));
} else {
displayer.addLine(String.format(Locale.ROOT, "Filtering: %s", filteringMethod.caption().getString()));
}
}
@Override
public boolean isAllowed(boolean reducedDebugInfo) {
return true;
}
}引用的其他类
-
- 引用位置:
方法调用 - 关联成员:
Minecraft.getInstance()
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
实现
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数
- 引用位置: