Skip to content

Annotated DI

Dependency Injection library for Minecraft mods

by The-Fireplace· WaterpickerLibrary
FabricForgeQuilt
Loaders
FabricForgeQuilt
Downloads on Modrinth
30.7K
Followers on Modrinth
12
versions
127
Updated
June 21, 2026Jun 21
Published
in 2021
This is a library — other mods need it, and it adds nothing to the game by itselfRequired by 8 mods. Download it if another mod needs it.

At a glance

A library: other mods need it — required by 8 mods
Runs on Fabric, Forge and Quilt
For Minecraft 1.14–1.21.11
Works on either side — install it in the game, on the server, or both
Latest version — 4.0.9+1.21.11+fabric from June 21, 2026
License Apache-2.0 — free
Where it's needed
In gameoptionalOn serveroptional

Works both in the game and on the server — install where you need it

Game versions1.14–1.21.11

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.

Extra utilities for modders:

  • The @Implementation annotation, which can be used to wire up all the dependencies conveniently without needing to make a separate file to configure all the bindings, and without forcing the API to have a compile time dependency on the implementation.
  • A central Injector, which allows mods to inject classes/interfaces from other mods.
  • An entrypoint/event that provides a way for modders to add a custom Module to the Injector when it's created - most mods won't need this unless they're doing some advanced bindings of some kind.

Documentation for developers can be found on the wiki.

Q&A

How does this help users?

Mods that are designed to use this can be easier to maintain than mods that don't use it, which can result in faster updates. It's not the right solution for every mod, but it can be useful for some, especially when making an API that other mods can use.

Does this do anything on its own?

It shows up in the mod list, but that's about it.

Does this download mod dependencies for you?

No

FAQ

How to install Annotated DI?

Install Fabric for your Minecraft version, download Annotated DI for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Annotated DI support?

Annotated DI has builds for Minecraft 1.14–1.21.11.

Is Annotated DI needed on the server?

Works on either side — install it in the game, on the server, or both

License and source
Apache License 2.0free to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More