PlayerAbilityLibForge
这是将 PyrofabTheModsmiths 的项目 PlayerAbilityLib 移植到 Forge/NeoForge 的版本。
以下是来自原版 CurseForge 页面的描述:
剧透
你是否遇到过飞行护符在你输入 /fly 命令后立即失效的问题?或者是一个让你穿模掉出地面的魔法喷气背包?又或者是一个似乎毫无理由地阻止你飞行的幽灵模式?
模组之间在玩家能力方面的不兼容问题比我们希望的更为常见,并且对模组开发者来说很难避免。任何FabricForge 模组都可以使用此库来与 PlayerAbilities 类交互,从而轻松避免上述问题。
感谢 Chloe Dawn 对部分 API 设计的贡献
玩家信息
玩家无需自行下载此库,因为它旨在嵌入到分发的 jar 文件中。
如果你发现某个模组导致与玩家能力(例如飞行)相关的不兼容问题,你可以(礼貌地)向作者推荐此 API,并询问他们是否可以在涉及 PlayerAbilities 的地方使用它。
开发者信息
开发者应使用 Gradle 设置对此库的依赖。建议使用 Modrinth Maven。
你可以在 测试模组 中找到一些使用示例。
PlayerAbilityLibForge
This a port of PyrofabTheModsmiths' project PlayerAbilityLib to forge/neoforge
Here is the discription from the original curseforge page:
Spoiler
Have you ever had an issue with a flight charm that stopped working as soon as you ran a /fly command ? Or a magic jetpack that made spectators sink through the ground ? Or a ghost mode that didn't let you fly for seemingly no reason ?
Mod incompatibilities with player abilities are way more common than we would like them to be, and are very difficult for mod developers to avoid. This library can be used by any Fabric Forge mod that interacts with the PlayerAbilities class to avoid the aforementioned issues without difficulty.
credits to Chloe Dawn for some of the API design
Player Information
Players should not have to download this library themselves, as it is intended to be embedded in distributed jar files.
If you find a mod that causes incompatibility related to player abilities (eg. flight), you can link the author (politely) to this API and ask if they could use it wherever they touch PlayerAbilities.
Developer Information
Developers should use gradle to setup a dependency on this library. I recomend using modrinth maven.
You can find a couple usage examples in the Test mod.
评论 0
登录后参与评分
还没有评论,来抢沙发吧