
Expose more of the multiblock visualization API
Traister101 opened this issue ยท 0 comments
Describe the feature
We're a mod with multiblock recipes. We'd like these to display in patchouli. Since our multiblocks are dynamic we cannot register our multiblocks to the provided multiblock registry which is expected to be static. nor can we easily use the vast vast majority of the multiblock handling patchouli provides as it's not exposed in the API. Ideally MultiblockVisualizationHandler#setMultiblock
would be exposed as well as the persistent data pertaining to visualization (presumably it'd be best to wrap all of it behind one call in the api) or more generally basically the contents of the method that handles the visualization button being clicked.
As is unless we decide to use a different book mod we are looking at not just re-implementing the multiblock book rendering but also the non anchored in world rendering unless we want to compile against the whole Patchouli jar which I'd rather like to avoid doing.
I am willing to write a PR for this long as I get some communication beforehand to know I won't be wasting time doing stuff you'll never accept.
Currently I see 3 effective ways to go about solving this.
- The already mentioned exposure of
MultiblockVisualizationHandler#setMultiblock
- Having api surface for what the visualization button does
- Make the multiblock registry semi-dynamic (extra method with boolean arg to replace if there's already a multiblock present?)
Additional context
No response