Debug 配置(DebugConfig)

基本信息

属性 值
配置类 com.mitchej123.hodgepodge.config.DebugConfig
配置分类 debug(@Config(modid = "hodgepodge", category = "debug"),DebugConfig.java:5)
源文件 src/main/java/com/mitchej123/hodgepodge/config/DebugConfig.java
字段总数 6(4 个 boolean + 2 个 int)
配置文件 config/hodgepodge.cfg 的 S:debug 段
GUI 可见 是(列于 config/gui/HodgepodgeGuiConfig.java:24)
挂载的 Mixin 数 4

功能

诊断用的开关集合,用于玩家 / 服务端管理员排查问题。默认状态下不会产生可见行为:

  • chunkSaveCMEDebug(默认 false)与 showChunkGenDebug(默认 false)默认关闭
  • renderDebug(默认 true)源码注释明确写着 “Will not do anything useful unless mode is changed to nonzero” —— 真正起作用的是配套的 renderDebugMode

⚠️ 本类没有 // 分节注释 —— 源码原样,6 项同属一个分组。

明细

字段名、类型、默认值与说明直接取自 DebugConfig.java:6-44。

配置项 类型 默认值 说明
chunkSaveCMEDebug boolean false hodgepodge debug Enable chunk save cme debugging code.
dimensionManagerDebug boolean true Prints debug log if DimensionManager got crashed
renderDebug boolean true Enable GL state debug hooks. Will not do anything useful unless mode is changed to nonzero.
renderDebugMode int 0 Default GL state debug mode. 0 - off, 1 - reduced, 2 - full
showChunkGenDebug boolean false Show chunk generation stats on the F3 debug screen (left side). Singleplayer only.
trackIncomingPackets boolean true Track incoming client packets for /packetstats. When disabled, /packetstats can still inspect the existing receive queue.