The-Fireplace-Minecraft-Mods / Annotated-DI

Dependency Injection for Minecraft mods
Apache License 2.0
1 stars 4 forks source link

Conditional Loading based on mod dependency #1

Closed The-Fireplace closed 2 years ago

The-Fireplace commented 3 years ago

As a modder, I'd like the ability to easily have one file injected if mod dependencies are met, and another if they aren't.

Perhaps allowing a dependency list in the annotation field would be the way to go here. I can probably parse them similar to how Fabric parses dependencies. That still leaves the question of how to prioritize if multiple Implementations' dependencies are met - or if I should even try to handle that.