Note: This project is not related or supported by either Fabric or Optifine.
Note: This project does not contain Optifine, you must download it separately!
After installing fabric for 1.14, you will need to place the OptiFabric mod jar as well as the optifine installer in the mods folder.
Fabric Loader should be the latest version from the Fabric Website
If you are using Fabric API version 0.2.7 is recommended, you can download it from here. Newer (0.3.0+) versions may have issues with shaders, a fix is being worked on.
Optifine Download (current 1.14 builds are under the preview section)
If you happen to find an issue and you believe it is to do with OptiFabric and not Optifine or a mod please open an issue here
Note Fabric, Optifine and OptiFabric are still all in beta, so things will be broken.
Feel free to open a PR with more screenshots.
This would not have been possible without Chocohead's Fabric-ASM.
- The mod looks for an optifine installer or mod jar in the current mods folder
- If it finds an installer jar it runs the extract task in its own throwaway classloader.
- The optifine mod jar is a set of classes that need to replace the ones that minecraft provides.
- Optifine's replacement classes change the name of some lambada methods, so I take a good guess at the old name (using the original minecraft jar).
- Remap optifine to intermediary (or yarn in development)
- Move the patched classes out as they wont do much good on the classpath twice
- Add optifine to the classpath
- Register the patching tweaker for every class that needs replacing
- Replace the target class with the class that was extracted, also do some more fixes to it, and make it public (due to access issues).
- Hope it works