Add a keybind to pull the hovered favorite into the player's inventory#1062
Add a keybind to pull the hovered favorite into the player's inventory#1062MellowArpeggiation wants to merge 5 commits intoemilyploszaj:1.21from
Conversation
|
I got it working with AE2, changes are AE2 side (new packet, etc) so I'll be making a PR there too, will link here when done |
…n the default item pulling implementation
|
And donezo! Check out the accompanying PR at AppliedEnergistics/Applied-Energistics-2#8689 |
|
Please reduce the diff noise and reformatting in edited classes. The proposed API is far too targeted, please design a generic solution that uses API concepts like |
|
Thanks for the review, I can revert the whitespace changes, I had a post-proc removing empty whitespace that I left on (globally) from a previous project, and thought at the time that it was both minor and a good spot of cleanup. The reason the API interfaces with slots directly is it is the simplest solution that can work with almost any inventory, regardless of how it is implemented (it is also almost identical to the existing auto-crafting item moving implementation!), the only case it fails in is with fake slots, like AE2 slots, which is what the registry is for. This PR is not a recipe handling solution, I gave it the same separation the That said, I'll make those changes to the API itself to remove the Again, thanks for reviewing, this functionality is something I sorely miss from the currently maintained 1.7.10 version of NEI, and I am happy to make any changes necessary to get it approved! |
|
On second review, maybe the API registration could be rolled into |
|
Okay I'm ready for a second review, I have:
I investigated the possibility of adding more context to the API registration interface, but all the relevant context (like player inventories and the like) are all provided already via more standard means. If you can think of any appropriate context to be added via arguments please let me know and I can add them. Oh and I'm still unsure about the use of |
Taking notes from GTNH NEI, this PR adds a keybind that - when pressed while hovering over a bookmarked favorite - will automatically search the currently open inventory (chest, crate, barrel, etc) and pull that item into the players inventory, ready for crafting. Works well with synthetic favorites that have a count, which will pull exactly that amount, if available.
Leaving as a draft for now to gauge interest, as I will have to create a new registry for mods to handle their own special inventory containers (like AE2, that doesn't have real container slots, and will need compat added). I've created a quick mock of a new registry method and am testing AE2 side integration with it, would look like the below:
Video demonstration in Monifactory - Forge 1.20.1
Screen.Recording.2025-10-21.204818.mp4