Skip to content

智能合并与布局配置

本页面介绍了 速度计 (Speedometer) 在 Minecraft F3 调试屏幕中如何处理覆盖层布局以及智能单行合并机制。


📊 布局模式矩阵信息框

player_speed 状态speedometer 状态F3 渲染输出内容模式名称
Enabled (在覆盖层中 (In Overlay))Enabled (在覆盖层中 (In Overlay))Speed: 0.215 blocks/tick, 4.30 b/s (H: 4.30, V: 0.00)智能合并模式
OFF (关闭 (OFF))Enabled (在覆盖层中 (In Overlay))Speed: 4.30 b/s (H: 4.30, V: 0.00)独立速度计模式
Enabled (在覆盖层中 (In Overlay))OFF (关闭 (OFF))Speed: 0.215 blocks/tick原版模式
OFF (关闭 (OFF))OFF (关闭 (OFF))(Line Hidden)禁用模式

⚙️ 如何切换选项 (F3 + F6)

  1. 在游戏内按下 F3 + F6 打开原版 F3 调试选项屏幕
  2. 滚动找到 speedometerplayer_speed
  3. 点击循环切换每个条目的显示状态:
    • 始终显示 (Always): Always rendered regardless of general overlay toggles.
    • 在覆盖层中 (In Overlay): Rendered whenever F3 debug overlay is active.
    • 关闭 (OFF): Completely hidden from the F3 screen.
  4. 按下“完成”或 Esc 返回游戏。速度计立即重新评估布局配置,无需重启游戏客户端。

🔍 智能单行合并机制

当同时开启 player_speedspeedometer 时,各自占用单独一行会显得视觉杂乱:

text
-- 杂乱未合并输出 --
Speed: 0.215 blocks/tick
Speed: 4.30 b/s (H: 4.30, V: 0.00)

为解决此问题,DebugEntryPlayerSpeedWrapper 拦截原版 player_speed 条目发出的字符串行并进行无缝合并:

text
-- 智能合并输出 --
Speed: 0.215 blocks/tick, 4.30 b/s (H: 4.30, V: 0.00)

🔗 相关页面

Official documentation & web portal for Dasik Igaijinn mods.