Download Annotated DI (Forge) — Minecraft Mods — MetaMods

Annotated DI (Forge)

Active

Downloads

0

Last update

1 year ago
Client
Fabric
Quilt
Forge
Neoforge
Libraries

Annotated DI (Forge)

This project is the Forge version of the mod. If you need the Fabric version, please refer to the corresponding page.

Annotated DI is a convenient wrapper for the Guice framework, enhanced with specialized utilities that simplify working with Minecraft modifications. This enables developers to use the Dependency Injection pattern when creating their own mods and APIs for them.

Benefits for Mod Developers

  • @Implementation Annotation — easily configures dependencies without the need to create separate configuration files and without forcing API dependency on the implementation during compilation.
  • Central Injector for Each Mod — allows injection of classes and interfaces from both the mod itself and its dependencies.
  • Module Registry — provides the ability to add custom modules to the Injector before it's created. This feature is useful for complex binding configurations.

Complete documentation for developers can be found on the project's wiki page.

Frequently Asked Questions

How does this benefit players?

Mods designed using Annotated DI are typically easier to maintain, which can lead to faster update releases. While this approach isn't suitable for all projects, it's particularly useful when developing APIs that other mods will use.

What does this mod do on its own?

It appears in the mod list but doesn't add any gameplay content or features.

Does it automatically download dependencies?

No, automatic dependency downloading is not supported.

Project members
The_Fireplace

The_Fireplace

Created: 18 Jul 2024

ID: 18983