HomeJavaModsAnnotated DI
Annotated DI
ModsJava

Annotated DI

by The-Fireplace · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21–1.21.11 · Quilt⬇ Download for 1.20.6 · Quilt⬇ Download for 1.20.5 · Quilt⬇ Download for 1.20.2–1.20.4 · Quilt⬇ Download for 1.21–1.21.11 · Fabric⬇ Download for 1.20.5–1.20.6 · Fabric⬇ Download for 1.20.1–1.20.4 · Fabric⬇ Download for 1.20.6 · Forge⬇ Download for 1.20.5 · Forge⬇ Download for 1.20.2–1.20.4 · Forge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

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:

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

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more