这是一个支持库,允许 Forge 模组通过 IMC 接收有关 Optifine 光影状态的通知。
通用说明:
模组可以通过 IMC 注册回调,从而在 Optifine 更改或禁用光影包时收到通知。由于使用的是 IMC(模组间通信),因此对 Unifine 没有硬性依赖。只需将其放入游戏即可运行。此模组仅对客户端有用,但由于服务端会直接忽略它,因此可以方便地分发到通用整合包中。如果未安装 Optifine,此模组将安全地处于非活动状态,因此当玩家遇到兼容性问题时,可以安全地移除 Optifine 而保留此模组。
开发辅助:
Optifine 是闭源的,在开发环境中难以调试和使用。Unifine 提供了便捷的方法,让开发者能够轻松获取 Optifine 的状态。该 API 允许模组作者方便地查询当前使用的光影包,从而告知/强制玩家使用为该整合包推荐或必需的光影包。
补丁修复:
此模组还包含针对 ThermalDynamics 覆盖物崩溃和渲染问题的解决方法。一旦 ThermalDynamics 和/或 Optifine 修复了该 bug,我将移除此功能。
整合包:
此模组可用于任何整合包,并可自由用作视频内容素材。
This is a support library to allow Forge Mods to get IMC notifications about Optifine's shader state.
General:
A mod can register a callback via IMC and can then receive a notification that Optifine has changed or disabled the shaderpack. Since it's IMC there's no hard dependencies on Unifine. Just drop it in and go. This mod is only useful on clients but can be easily distributed in universal modpacks since the server simply ignores it. If Optifine is not installed then this mod becomes safely inactive, so it's safe for players to remove Optifine and leave this mod if they are having compatibility issues.
Development Aid:
Optifine is closed source and difficult to work with in a dev environment. Unifine provides convenient methods to develop against that are accessible and clear to get the state of Optifine. The API allows modders to conveniently find out the shaderpack being used so it can inform/enforce the player of the recommended/required shaderpack that's intended for a modpack.
Monkey Patches:
This mod also contains a workaround for ThermalDynamics cover crashes and rendering issues. Once this bug has been fixed in either ThermalDynamics and/or Optifine I'll remove this feature.
ModPacks:
This mod may be used in any modpacks, and freely used as content for videos.
评论 0
登录后参与评分
还没有评论,来抢沙发吧