https://github.com/PatchworkMC/patchwork-patcher
Patches Forge mod jars, allowing them to be loaded by Fabric
https://github.com/PatchworkMC/patchwork-patcher
hacktoberfest
Last synced: about 1 year ago
JSON representation
Patches Forge mod jars, allowing them to be loaded by Fabric
- Host: GitHub
- URL: https://github.com/PatchworkMC/patchwork-patcher
- Owner: PatchworkMC
- License: lgpl-3.0
- Archived: true
- Created: 2019-09-23T00:30:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-03T02:24:50.000Z (about 2 years ago)
- Last Synced: 2025-01-27T19:59:18.182Z (over 1 year ago)
- Topics: hacktoberfest
- Language: Java
- Homepage:
- Size: 929 KB
- Stars: 317
- Watchers: 33
- Forks: 33
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **THIS IS NO LONGER BEING MAINTAINED.**
# Patchwork: Patcher
Patchwork Patcher is a set of tools for transforming and patching Forge mod jars into jars that are directly loadable by Fabric Loader. It does the following things currently:
* Remaps Minecraft from official (proguard's obfuscated names) to srg (MCP's runtime mappings)
* Remaps the mod jar from srg to official using Tiny Remapper with the srg minecraft jar on the classpath
* Remaps the mod jar from official to intermediary using Tiny Remapper with the official minecraft jar on the classpath
* Converts the Forge mods.toml manifest to a fabric.mod.json file
* Converts @OnlyIn annotations to @Environment for Fabric
* Strips @ObjectHolder annotations, removes the field's final modifiers, and creates Consumers that set the fields
* Strips @Mod.EventBusSubscriber and @SubscribeEvent annotations and generates event handlers (that handle events) and event registrars (that register event handlers on behalf of a class)
* Non-static event handlers are not yet supported
* Generates a class implementing ForgeInitializer that registers all the object holders and event registrars
* 1.16.4 only.
## Note on Patchwork API
Patchwork Patcher generates jars that require a Fabric mod acting as a compatibility layer to run. [Patchwork API](https://github.com/PatchworkMC/patchwork-api) fulfills this role, most development will happen there.