Mouse 4 as back
Adds a hotkey that allows you to go to the previous screen if possible.
截图
介绍
Adds a new keybind that makes you go back to the previous screen.
It has 4 ways of finding the previous screen.
It first tries to find any buttons on screen that in the en_us language, has any of these words as its title: back, return, done, cancel. If it finds any button that only contain one of those words, then it will click that.
If that fails, it tries to check the screen class. Some screens store a variable to remember the previous screen it was on. Think going from the video settings subscreen back to the settings screen. The mod tries to find any field that is named the following:
previous, previousscreen, lastscreen, parent, parentscreen. These variable names are taken from any vanilla screen class I can find. If you have suggestions of ones to add then im all ears.
If that fails. It tries to go to the extending class. Some classes extend other classes and the class they extend may store a variable to the previous screen. So it tries to search with a depth of 7, arbitrarily chosen, and does the field technique described above.
If all of that fails, it tries calling the close method, basically just pressing escape.
If you are for some reason wondering, as a mod dev, on how to make sure this mod works. Then just simple have either a button that only has the text being: back, return, done, cancel. Or store a previous screen variable as previous, lastscreen, previousscreen, parent, parentscreen
常见问题
Mouse 4 as back 支持哪些 Minecraft 版本?
Mouse 4 as back 支持 Minecraft Java 版 1.21–26.2,共 13 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Mouse 4 as back 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
bikerboys 的其他作品
查看全部 →Rare Ice
在世界中生成稀有冰块。你能找到它们吗?
Underwater Swim Fix (MC-220390)
修复了游泳时按住疾跑键攻击实体后,客户端仍认为你在游泳、服务端却认为你已停止游泳,导致行为异常的问题。
Light Overlay
一个简单的模组,为玩家提供类似NEI的光照等级覆盖显示。
Underwater Swim Fix (MC-220390)
修复了以下问题:当你在游泳时按住疾跑热键攻击实体,服务端会认为你已不再游泳,而客户端仍认为你在游泳,导致行为异常。
评论
登录后评论和评分