Team-Resourceful / Resourceful-Config

MIT License
5 stars 3 forks source link

[Feature Request]: Let users provide the WebInfo segment programmatically #14

Closed UpcraftLP closed 8 months ago

UpcraftLP commented 8 months ago

Is your feature request related to a problem?

I'm always frustrated when Y happens. I'd rather have two Xs.

Anyway I would love if I could programmatically provide this info instead of having to hardcode it. That way I could fill in those properties from my mod metadata and not need to keep 2 separate places in sync.

Solution(s)

add an annotation which takes a class as single argument (that must implement an interface), that is then instantiated via reflection to query the info values.

Something like @WebInfoProvider(MyProvider.class).

Describe alternatives you've considered

No response

Mod Version

N/A

Mod Loader Version

N/A

Mod Loader

N/A

Additional context

No response