Annotated DI 图标

Annotated DI

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 4.0.8+1.21.7+fabric
本资源为搬运资源,原资源地址: https://modrinth.com/mod/annotated-di
资源信息

Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7

平台: fabric quilt

标签: library

资源介绍

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

📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
The Dawn Era (DISCONTINUED)

价格:0 墨喵币
下载量:0

查看详情
Cracker's Wither Storm Mod

价格:0 墨喵币
下载量:0

查看详情
Symbolic Subtitles

价格:0 墨喵币
下载量:0

查看详情
CustomHud

价格:0 墨喵币
下载量:0

查看详情