介绍
It implements key record, and support both key and mouse(mouse record can be closed in the config),
also it is used in my other mods.
Features:
This mod hook the InputEvent of client, record it on client and update to the server.
Using it, developers can visit the operations from client.
One of the user is SheepScriptLib, my another mod. Using it to post greater key event to the script.
Only works when there’s no gui showing, will not work on chatting, backpack.
API:
saltsheep.keylib.key.PlayerKeyHandler
Storing the player’s key data in server.
saltsheep.keylib.key.PlayerKeyClientHandler
Storing the player’s key data in client.
saltsheep.keylib.key.PlayerKeyDownEvent, saltsheep.keylib.key.PlayerKeyUpEvent
The event posted in server(forge bus).
常见问题
SheepKeyLib 支持哪些 Minecraft 版本?
SheepKeyLib 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
SheepKeyLib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分