branchpanic / stockpile

A Minecraft mod all about storage.
MIT License
10 stars 5 forks source link

Implement the Fabric Item Transfer API #108

Open Technici4n opened 2 years ago

Technici4n commented 2 years ago

You should implement the Fabric Item Transfer API and get rid of the hacky Inventory implementation that you have. The Transfer API tries to wrap Inventory's, but it assumes that the inventory essentially behaves like a chest or a furnace, which can lead to duplication/voiding issues if the inventory tries to do more things behind the scenes.

https://github.com/AppliedEnergistics/Applied-Energistics-2/issues/5624

Technici4n commented 2 years ago

That should be quite easy thanks to SingleVariantStorage<ItemVariant> though. :wink:

branchpanic commented 2 years ago

It is indeed quite easy -- in fact, I did it on an experimental branch recently.

Considering that the current Inventory implementation has caused plenty of breakage over time, I'll see what it takes to backport to 1.x.