Back to mods
Annotated DI (Forge) project artwork

CurseForge · Minecraft mod

Annotated DI (Forge)

Dependency Injection library for Minecraft mods

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Annotated DI (Forge) release matches 1.16.2?

Updated 4 months ago
Best match for your filters 4.0.9+1.16.5+fabric
Game version 1.16.2, 1.16.3, 1.16.4
Loader Fabric, Quilt

Annotated DI (Forge) 4.0.9+1.16.5+fabric targets 1.16.2, 1.16.3, 1.16.4 with Fabric, Quilt. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is Annotated DI (Forge) required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release Fabric, Quilt
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Annotated DI (Forge) 4.0.9+1.16.5+fabric need?

4.0.9+1.16.5+fabric on 1.16.2. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Annotated DI (Forge) without breaking your instance.

Built for Annotated DI (Forge) 4.0.9+1.16.5+fabric on 1.16.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 4.0.9+1.16.5+fabric. It targets 1.16.2, 1.16.3, 1.16.4 with Fabric, Quilt; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 4.0.9+1.16.5+fabric. It opens that exact file at the source.

About this project

What does Annotated DI (Forge) add?

This project is for the Forge version of the mod. Click here for the Fabric version of the mod.

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 for each mod, which allows mods to inject classes/interfaces from themselves and their dependencies.
  • A registry that provides a way for modders to add a custom Module to the Injector before 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

Project description from CurseForge.

Pick your setup

Annotated DI (Forge) by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

96 available setups

Showing the newest 12 of 37 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Annotated DI (Forge) versions and loaders

12 of 110 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.