Debugger's Delight
Gadget 是一组用于从游戏内调试和检查特定游戏元素的工具——类似于 Chrome 的开发者工具或 Firefox 的 Firebug。
Gadget 的检查工具既适用于单人游戏,也适用于远程服务器(前提是服务器上也安装了 Gadget)。
实体检查器

当瞄准一个实体或方块实体时,按下 Inspect (默认: I) 键即可查看并编辑其内部的 Java 字段。你可以同时检查客户端和服务端的 Java 对象。
NBT 检查器

当悬停在带有 NBT 数据的物品堆栈上时,按下 Inspect (默认: I) 键即可查看并编辑其 NBT 数据。
数据包转储器

按下 Dump Packets (默认: K) 键以开启网络流量转储。你也可以通过右键点击服务器或世界,选择 Join and start dumping packets 在启用数据包转储的情况下加入游戏。
再次按下 Dump Packets 可停止录制并保存转储文件。
你可以从 Gadget 的菜单中查看它。
服务器所有者与操作员
Gadget 支持 Fabric Permissions API。
如果未安装该 API,则默认为需要 OP 状态。
Gadget 使用以下权限:
gadget.inspect - 实体检查器使用权限
gadget.replaceStack - NBT 查看器写入权限
类检查器
(类检查器在最新版本中已损坏 :P)
通过在类检查器中浏览所有被 mixin 影响的类(如果按住 Shift 键,则浏览所有类)来查看所有相关类。
注意:首次按下 Inspect Exported Classes 时,将自动从 QuiltMC Maven 下载 Quiltflower。
Debugger's Delight
Gadget is a collection of tools to debug and inspect certain game elements from in-game - think Chrome's developer tools, or Firefoxes' Firebug.
Gadget's inspection tools work both in single player and on a remote server - if it also has Gadget installed.
Entity Inspector

Press the Inspect (default: I) key when targeting a entity or block entity to view and edit its internal Java fields. You can inspect both the client and server Java object.
NBT Inspector

Press the Inspect (default: I) key when hovering over an item stack with NBT to view and edit its NBT.
Packet Dumper

Press the Dump Packets (default: K) key to toggle dumping network traffic on. You can also join with the packet dumper engaged by right-clicking the server or world and selecting Join and start dumping packets.
Press Dump Packets again to stop recording and save the dump.
You can review it from the Gadget's menu.
Server owners and operators
Gadget supports the Fabric Permissions API.
If not present, it defaults to requiring OP status.
Gadget uses the following permissions:
gadget.inspect - entity inspector usage permission
gadget.replaceStack - NBT viewer write permission
Class Inspector
(the class inspector is broken in the latest version :P)
Look through all classes touched by mixin (or all classes, if you hold shift) by looking in the class inspector.
N.B.: This will automatically download Quiltflower from the QuiltMC maven the first time you press Inspect Exported Classes.
评论 0
登录后参与评分
还没有评论,来抢沙发吧