SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
✓ VerifiedLibraries & compatibility

Annotated DI

by The-Fireplace · for Minecraft

Dependency Injection library for Minecraft mods

30KDownloads
3 mo agoLast updated
Apache-2.0License
Fabric · Forge +1Loaders

About Annotated DI

From Modrinth

Dependency Injection library for Minecraft mods

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

Highlights

From source data

Game versions

Supports 43 Minecraft versions, the newest being 1.21.11.

Loaders

Runs on Fabric, Forge and Quilt.

Footprint

Rated a light load on a server.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

Libraries & compatibility

Foundations and fixes other mods build on. Usually installed because something else needs it.

Works on a server

From source side support

Modrinth lists server-side support for Annotated DI as optional: it can run on a server, but isn’t required there.

Compatibility

Game
Minecraft
Loaders
FabricForgeQuilt
Runs on
Serveroptional on the server
Game versions
1.21.11 and 42 earlier

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-01Open ↗
  • ✓AuthorThe-Fireplace, as published on Modrinth
  • ✓LicenseApache-2.0Free

Annotated DI, answered

Generated from the mod’s own source data.

Do my players need to install Annotated DI?

Modrinth lists server-side support for Annotated DI as optional: it can run on a server, but isn’t required there.

Which loaders does it support?

Fabric, Forge and Quilt.

Is it free?

Yes. Annotated DI is free to download from Modrinth. Its license is Apache-2.0.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Annotated DI on a Minecraft server.

Deploy in about a minute from $4.20 a month, then add Annotated DI in one click.