Annotated DI (Fabric/Quilt)

Dependency Injection library for Fabric/Quilt mods

This project is for the Fabric/Quilt version of the mod. Click here for the Forge 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 way to retrieve another mod's injector, for injecting soft dependencies' files.
  • An entrypoint 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

The Annotated DI (Fabric/Quilt) Team

profile avatar
  • 65
    Followers
  • 43
    Projects
  • 10.4M
    Downloads
Donate

More from The_FireplaceView all

  • In-Game Account Switcher project image

    In-Game Account Switcher

    • 1.4M
    • Mods

    This mod allows you to change your logged in account in-game, without restarting Minecraft

    • 1.4M
    • May 5, 2026
    • Mods
    • +1
  • Unforgiving Void project image

    Unforgiving Void

    • 1.2M
    • Mods

    Configurable behavior when you fall into the void - land in another dimension, fall from the sky, and more!

    • 1.2M
    • July 15, 2025
    • Mods
    • +2
  • Fireplace Lib (Fabric/Quilt) project image

    Fireplace Lib (Fabric/Quilt)

    • 399.4K
    • Mods

    A library of common functionality used by my mods, in one place for easier maintenance and faster updates.

    • 399.4K
    • July 14, 2025
    • Mods
  • Fireplace Lib (Forge) project image

    Fireplace Lib (Forge)

    • 183.9K
    • Mods

    A library of common functionality used by my mods, in one place for easier maintenance and faster updates.

    • 183.9K
    • July 14, 2025
    • Mods
  • In-Game Account Switcher project image

    In-Game Account Switcher

    • 1.4M
    • Mods

    This mod allows you to change your logged in account in-game, without restarting Minecraft

    • 1.4M
    • May 5, 2026
    • Mods
    • +1
  • Unforgiving Void project image

    Unforgiving Void

    • 1.2M
    • Mods

    Configurable behavior when you fall into the void - land in another dimension, fall from the sky, and more!

    • 1.2M
    • July 15, 2025
    • Mods
    • +2
  • Fireplace Lib (Fabric/Quilt) project image

    Fireplace Lib (Fabric/Quilt)

    • 399.4K
    • Mods

    A library of common functionality used by my mods, in one place for easier maintenance and faster updates.

    • 399.4K
    • July 14, 2025
    • Mods
  • Fireplace Lib (Forge) project image

    Fireplace Lib (Forge)

    • 183.9K
    • Mods

    A library of common functionality used by my mods, in one place for easier maintenance and faster updates.

    • 183.9K
    • July 14, 2025
    • Mods