Your GTNH Discord Username
ruiseki_001
Feature Request
Summary
Expose a public registry system to allow external mods to register custom IModdedInventory implementations at runtime without needing to modify the InvSeeInventories enum via a Pull Request.
The Problem
Currently, all viewable inventories are hardcoded inside the InvSeeInventories enum. If an external mod or extension wants to add support for a custom container/inventory type via IModdedInventory, it is impossible to do so dynamically. Developers are forced to submit a PR to modify the core enum directly.
Proposed Solution
- Create an
InvSeeRegistry or add a registration system alongside InvSeeInventories.
- Update
InvSeeInventories.getActiveInventories() to return a combined list of both the core enum values and the dynamically registered external inventories.
Example:
// How an external mod would register its own invsee logic during initialization
InvSeeRegistry.registerInventory("MyCustomModID", CustomInventory.class);
Final Checklist
Your GTNH Discord Username
ruiseki_001
Feature Request
Summary
Expose a public registry system to allow external mods to register custom
IModdedInventoryimplementations at runtime without needing to modify theInvSeeInventoriesenum via a Pull Request.The Problem
Currently, all viewable inventories are hardcoded inside the
InvSeeInventoriesenum. If an external mod or extension wants to add support for a custom container/inventory type viaIModdedInventory, it is impossible to do so dynamically. Developers are forced to submit a PR to modify the core enum directly.Proposed Solution
InvSeeRegistryor add a registration system alongsideInvSeeInventories.InvSeeInventories.getActiveInventories()to return a combined list of both the core enum values and the dynamically registered external inventories.Example:
Final Checklist