Waila Events
Waila Events 是一个核心模组(Core Mod),它为 Waila 模组添加了多个新事件。该模组本身不为普通玩家添加任何新功能,但可供其他模组调用,以集成原本可能无法实现的新特性。
如果您计划在开发环境中使用此模组,请阅读 README 文档以及 GitHub 页面。
本项目由 Nodecraft 赞助。使用优惠码 DARKHAX 可享首月服务费 30% 折扣!
事件
- WailaRenderEvent.Pre:在渲染 Waila HUD 之前触发。可以取消此事件以防止绘制 HUD。
- WailaRenderEvent.Post:在渲染 Waila HUD 之后触发。此事件不可取消。
常见问题解答
问:我是普通玩家,为什么需要安装这个模组?
答:将有若干模组依赖本模组才能正常运行。您需要下载并安装此模组才能使那些模组正常工作。目前正在整理一份依赖此模组的模组列表。
问:我是开发者,如何在我的模组中使用它?
答:本模组添加了两个新事件。这些事件利用 Forge 事件总线,其用法与传统 Forge 事件完全相同。正确使用此“API”的方式是将相关类引用为构建路径的一部分。要编译此模组,您需要在 build.gradle 文件中添加额外配置以针对 jar 文件进行编译。
问:我可以将此模组作为依赖加载器的一部分吗?
答:如果您希望创建一个依赖加载器来自动下载并安装它,这是完全允许的。请确保从 CurseForge 链接处下载。
问:此模组可以在服务端使用吗?客户端呢?它是如何工作的?
答:本模组是一个客户端可选库,这意味着您可以将其安装在服务器上,而客户端无需安装即可连接。话虽如此,目前将本模组安装到服务器上并无实际益处。虽然您可以在服务端安装此模组,但挂钩仅在客户端处理。未来可能会有所变化。
问:我可以在我的整合包中使用此模组吗?
答:是的,只要您的整合包不是用于销售,您就可以在整合包中使用此模组。您无需获得我的书面许可即可在整合包中使用此模组。任何要求您申请许可的消息都将被忽略。
Waila Events
Waila Events is a Core Mod that adds several new events into the Waila Mod. This mod does not add in any new features for the average player, however it can be used by other mods to add new features that otherwise may not be available.
If you are planning to use this mod in your dev environment, please read the README on the GitHub page.
This project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!
Events
- WailaRenderEvent.Pre: This event is triggered before the Waila HUD is rendered. This event can be canceled to prevent the HUD from being drawn.
- WailaRenderEvent.Post: This event is triggered after the Waila HUD is rendered. This event can not be canceled.
Q&A
Q: I am an average player, why would I ever need this mod?
A: There will be several mods which require this mod to be installed, for them to function properly. You will need to download and install this mod for those to work. A list of mods that require this mod is being worked on.
Q: I am a developer, how can I use this for my mod?
A: This mod adds in two new events. These events make use of the forge event bus and can be used in exactly the same way as traditional forge events. The proper way to use this "API" is to reference the classes as if they were part of your build path. To compile this mod, you will have to add some extra stuff to your build.gradle file to compile against a jar file.
Q: Can I use this mod as part of a dependency loader?
A: If you would like to create a dependency loader to automatically download and install it, that is perfectly fine. Please make sure to download from the curse forge links.
Q: Can this mod be used on servers? What about clients? How does this work?
A: This mod is a client-optional library, this means that you can install this mod on your server, and clients will not need it to connect. That being said, there is currently no benefit to installing this mod in your server. While you can install this mod on your server, the hooks are only handled on the client side of things. This may change in the future.
Q: Can I use this in my modpack?
A: Yes, you can use this mod in your mod packs, as long as they are not being sold. You do not need advanced written permission from myself in order to use this mod in your modpack. Any messages asking for permission will be ignored.
评论 0
登录后参与评分
还没有评论,来抢沙发吧