Date: 2021-12-29
Accepted
Now that we have platform modules (one for each modloader, and a common module) [1] and API modules [2], we still need a way for addons to integrate with the mod.
Doing so via the common module would be detrimental as it would expose too much code to addons (just like it did in Refined Storage 1).
Refined Storage will have a modloader-neutral (just like the common module) platform API module which addon mods can use to integrate with Refined Storage.
Moreover, Refined Storage itself will use this platform API module.
The module is named refinedstorage-platform-api
.
By offering a dedicated platform API module we can much more tightly control API surface.
The platform API module is platform-neutral so addons can decide what modloader they target. Moreover, it saves us time because we don't have to maintain different platform APIs per modloader.
However, if addon mods want to support multiple modloaders, they'll have to create their own abstractions.