Unifine
Support Library for Optifine Integration
Unifine is a support library that enables Forge mods to receive notifications about Optifine's shader state through the Inter-Mod Communication (IMC) system.
Core Features
Developers can register callbacks via IMC and receive alerts when Optifine changes or disables the shaderpack. Since IMC is used, mods don't have hard dependencies on Unifine - simply add the library to your project.
This modification is only useful on the client side but can be freely distributed in universal modpacks since the server component ignores its functionality. If Optifine isn't installed, Unifine automatically becomes inactive, allowing players to safely remove Optifine when compatibility issues arise.
Development Assistance
Optifine is closed-source, making it difficult to work with in development environments. Unifine provides convenient and clear methods for obtaining information about Optifine's state. The API allows developers to easily identify the shaderpack being used, helping to inform players about recommended or required shaders for specific modpacks.
Compatibility Fixes
The library also includes a temporary solution for ThermalDynamics cover crashes and rendering issues. This feature will be removed once the corresponding bugs are fixed in ThermalDynamics and/or Optifine.
Usage
Unifine can be freely used in any modpacks and as content for videos.