Resourceful Config

Resourceful Config

32M Downloads

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

UpcraftLP opened this issue ยท 0 comments

commented

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