Warning
This port of the Forgified Fabric API is a work in progress. Proceed with caution.
- Running the root project
- Production
- Publishing
- CI
- Bring our own buildscript and pull changes from upstream into a git submodule
- Use a mojang-mapped FAPI source as a base for our code
- Keep changes to unrelated files at minimum, generate metadata and entrypoint files using Gradle
- Automate the update (rebase) process
- MOJMAP!
- By using mojmap, we eliminate any necessary remapping, leading to greatly shorter build times and improved development time efficiency
- Improved stability: we no longer need to rely on archloom's "hopes" and "prayers" for neo loom support
- Improved dev experience: no more userdev remapping issues
- Syncing with upstream is (hopefully) made easier via automation scripts
Subprojects related to build setup can be found the in api-meta
directory.
After cloning, make sure to init
and update
git submodules to fetch the upstream FAPI repo.
Once imported into an IDE, the project is ready to run.
- Copy the desired upstream module folder from
api-meta/fabric-api-upstream
into the project root - Enable the subproject in
settings.gradle.kts
- Remap upstream sources by running the subproject's
remapUpstreamSources
task - Copy the remapped sources from
api-meta/fabric-api-mojmap/<module>
into the project root - When prompted, overwrite all existing files
- Run the game / make necessary changes to the code