Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
QueryInfo
About this mod / 关于此MOD
This is a mod that allows other programs to obtain information from the running Minecraft client via the HTTP protocol.
这是一个允许其他程序通过HTTP协议从正在运行的Minecraft客户端获取信息的模组。
Example / 示例
You can use other languages to write small tools like this.
Config / 配置文件
{
"enableDebug": false,
"apiHost": "127.0.0.1",
"apiPort": 25800,
"apiPortMax": 25899,
"apiAcceptQueueSize": 256
}
The mod will attempt to bind to a port starting from apiPort
(for the API service).
If binding fails, it will increment by 1 and continue until apiPortMax
.
模组将尝试从
apiPort
开始绑定端口(用于API服务),如果绑定失败则+1,直到apiPortMax
Features / 功能
The currently available API provides the ability to retrieve the client player's name, UUID, and location, as well as list world entities. More APIs will be available in future updates. For more details, please refer to the API documentation on GitHub.
目前提供的API可以获取客户端玩家名称、UUID、位置,列出世界实体等能力;更多的API会在未来更新。 具体请查看Github上的API文档。
Dependencies / 依赖
Fabric API.