DebugEntryNoop.java

net.minecraft.client.gui.components.debug.DebugEntryNoop

信息

  • 全限定名:net.minecraft.client.gui.components.debug.DebugEntryNoop
  • 类型:public class
  • 包:net.minecraft.client.gui.components.debug
  • 源码路径:src/main/java/net/minecraft/client/gui/components/debug/DebugEntryNoop.java
  • 起始行号:L10
  • 实现:DebugScreenEntry
  • 职责:

    TODO

字段/常量

  • isAllowedWithReducedDebugInfo
    • 类型: boolean
    • 修饰符: private final
    • 源码定位: L11
    • 说明:

      TODO

内部类/嵌套类型

构造器

public DebugEntryNoop() @ L13

  • 构造器名:DebugEntryNoop
  • 源码定位:L13
  • 修饰符:public

参数:

说明:

TODO

public DebugEntryNoop(boolean isAllowedWithReducedDebugInfo) @ L17

  • 构造器名:DebugEntryNoop
  • 源码定位:L17
  • 修饰符:public

参数:

  • isAllowedWithReducedDebugInfo: boolean

说明:

TODO

方法

下面的方法块按源码顺序生成。

public void display(DebugScreenDisplayer displayer, Level serverOrClientLevel, LevelChunk clientChunk, LevelChunk serverChunk) @ L21

  • 方法名:display
  • 源码定位:L21
  • 返回类型:void
  • 修饰符:public

参数:

  • displayer: DebugScreenDisplayer
  • serverOrClientLevel: Level
  • clientChunk: LevelChunk
  • serverChunk: LevelChunk

说明:

TODO

public boolean isAllowed(boolean reducedDebugInfo) @ L25

  • 方法名:isAllowed
  • 源码定位:L25
  • 返回类型:boolean
  • 修饰符:public

参数:

  • reducedDebugInfo: boolean

说明:

TODO

public DebugEntryCategory category() @ L30

  • 方法名:category
  • 源码定位:L30
  • 返回类型:DebugEntryCategory
  • 修饰符:public

参数:

说明:

TODO

代码

@OnlyIn(Dist.CLIENT)
public class DebugEntryNoop implements DebugScreenEntry {
    private final boolean isAllowedWithReducedDebugInfo;
 
    public DebugEntryNoop() {
        this(false);
    }
 
    public DebugEntryNoop(boolean isAllowedWithReducedDebugInfo) {
        this.isAllowedWithReducedDebugInfo = isAllowedWithReducedDebugInfo;
    }
 
    @Override
    public void display(DebugScreenDisplayer displayer, @Nullable Level serverOrClientLevel, @Nullable LevelChunk clientChunk, @Nullable LevelChunk serverChunk) {
    }
 
    @Override
    public boolean isAllowed(boolean reducedDebugInfo) {
        return this.isAllowedWithReducedDebugInfo || !reducedDebugInfo;
    }
 
    @Override
    public DebugEntryCategory category() {
        return DebugEntryCategory.RENDERER;
    }
}

引用的其他类