AppliedEnergistics / Applied-Energistics-2

A Minecraft Mod about Matter, Energy and using them to conquer the world..
https://appliedenergistics.github.io/
Other
1.41k stars 647 forks source link

Improve JEI ghost item handling in AE2 #7393

Open Mithi83 opened 1 year ago

Mithi83 commented 1 year ago

Describe the feature

Allow shift-clicking ghost items from JEI into slots that would accept drag&drop ghost items. There is a discrepancy between the possibility to shift-click an item from the player inventory into a ghost item slot (i.e. to partition a storage cell in a cell workbench, setting filters on import/export busses etc.) and the requirement for drag&drop from JEI, which works fine but is less comfortable than shift-clicking.

From my research in the code I'm not sure if this would be feasible with only modifications of the AE2 side of things. I'd rather expect that JEI must be enhanced as well. I haven't found any hint that JEI would support shift-clicking like that just yet. I've still decided to bring that idea here first to see if it would be accepted into AE2 if JEI offered such a capability. If not there would be no point for me to bring it up in the JEI github.

Reasons why it should be considered

Quality of life improvement for players that tend to do a lot of these things:

In 4K resolution it is quite a long way to go with a mouse to drag&drop each individual item into place. My personal use case is like this: I'd like to partition a lot of storage cells. I open a cell workbench, insert my storage cell, search for some items I'd like to have added to the partitioning scheme of that storage cell (usually grouping by mod or some common theme, e.g. every form of cobblestone), leaving me with a rather large number of items I want to add. Now I have to drag&drop them one by one into the cell workbench. Moving the mouse away from the item I added the last time makes it hard to correctly remember where to resume the process. If I were able to shift-click the items in from JEI the way I am from the player inventory I could move my mouse just a little bit while keeping my eyes on the JEI part of the screen and be done with my task in a fraction of the time, plus I would encounter fewer errors like skipped items.

Additional details

I came across this discrepancy in my recent playthrough of FTB Skies (1.3.1) using appliedenergistics2-forge-12.9.5.jar with jei-1.19.2-forge-11.6.0.1015.jar. As I'm not familiar with setting up a dedicated test environment with just these two mods I cannot rule out the possibility that it is a special feature of this modpack or has already been implemented in newer versions.

Thanks for a great mod and thanks for your time considering this feature request.

Technici4n commented 1 year ago

It sounds good, but wouldn't work in cases where there would be multiple zones of "filter slots". (Not a problem for us, but it might make JEI more hesitant to support this). I also don't think JEI has the required features at the moment. Something to consider though.