COWMODSКаталог модов

Annotated DI

Dependency Injection library for Minecraft mods

Автор: The-Fireplace31,2 тыс.12обновлён 21 июн. 2026 г.
Библиотеки

Описание

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

Последние версии

Все версии →
release

4.0.9

4.0.9+1.21.11+fabric
21 июн. 2026 г.469Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11fabric, quilt
Скачать
Что нового
Add German translation
release

4.0.9

4.0.9+1.20.6+fabric
21 июн. 2026 г.61Minecraft: 1.20.5, 1.20.6fabric
Скачать
release

4.0.9

4.0.9+1.20.4
21 июн. 2026 г.50Minecraft: 1.20.2, 1.20.3, 1.20.4forge
Скачать
Что нового
Add German translation
release

4.0.9

4.0.9+1.20.4+fabric
21 июн. 2026 г.245Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4fabric, quilt
Скачать
Что нового
Add German translation
release

4.0.9

4.0.9+1.20.1
21 июн. 2026 г.336Minecraft: 1.20, 1.20.1forge
Скачать
Что нового
[1.20/1.20.1] Fix Forge compatibility issues. Add German translation
release

4.0.9

4.0.9+1.20.1+fabric
21 июн. 2026 г.47Minecraft: 1.20, 1.20.1fabric, quilt
Скачать
Что нового
[1.20/1.20.1] Fix Forge compatibility issues. Add German translation
release

4.0.9

4.0.9+1.19.4+fabric
21 июн. 2026 г.112Minecraft: 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4fabric, quilt
Скачать
Что нового
Add German translation
release

4.0.9

4.0.9+1.19.4
21 июн. 2026 г.117Minecraft: 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4forge
Скачать
Что нового
Add German translation
release

4.0.9

4.0.9+1.18.2+fabric
21 июн. 2026 г.56Minecraft: 1.18, 1.18.1, 1.18.2fabric, quilt
Скачать
Что нового
Add German translation
release

4.0.9

4.0.9+1.18.2
21 июн. 2026 г.120Minecraft: 1.18, 1.18.1, 1.18.2forge
Скачать
Что нового
Add German translation