Annotated DI
Annotated DI is a library that gives other Minecraft mods a central Injector for dependency injection, built as a wrapper around Guice.
What it does
Mods that need to share classes or interfaces with each other can register them through a central Injector, which the library provides. A custom module can be added through an entrypoint event, and the wrapper adds a few utilities that make Guice bindings easier to write. Most mods will not need it unless they use advanced bindings, but it suits mod APIs that other mods depend on. Either side can run it, and neither needs it, and it is released under the Apache License 2.0 as open source. It is published for Fabric, Forge and Quilt, with builds covering 1.14 – 1.21.11.
Key features
Central Injector
One Injector lets mods expose classes and interfaces to other mods without each one building its own container.
Module entrypoint
An entrypoint event lets a mod register its own Module with the Injector during startup.
Guice wrapper
The library wraps Guice and adds utilities that make injection bindings shorter to write.
Compatibility
Latest build for each game version and loader.
1.21.x12 of 12 versions with builds
1.20.x7 of 7 versions with builds
1.19.x5 of 5 versions with builds
1.18.x3 of 3 versions with builds
1.17.x2 of 2 versions with builds
1.16.x6 of 6 versions with builds
1.15.x3 of 3 versions with builds
1.14.x5 of 5 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Required by 8 mods
In the catalog
Annotated DI is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 19,862 mods support Minecraft 1.21.11.
More from The-Fireplace
Similar mods
What the author says
Annotated DI is a wrapper around Guice with a few extra utilities added for more convenient use with Minecraft mods. This allows the Dependency Injection design pattern to be used when making mods and APIs for them. Documentation for developers can be found on the wiki.
Official listing
- Modrinth page
- modrinth.com/mod/annotated-di
- Owner
- The-Fireplace
- Published
- 2021-07-07
- Updated on Modrinth
- 2026-06-21
- Facts verified
- 2026-10-15
