User Tools

Site Tools


tutorial:transfer-api_item_storage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
tutorial:transfer-api_item_storage [2022/02/04 17:32] technici4ntutorial:transfer-api_item_storage [2022/02/04 17:37] technici4n
Line 1: Line 1:
-====== Fabric Transfer API: Understanding Storage<ItemVariant> ======+====== Fabric Transfer API: Item transfer with Storage<ItemVariant> ======
 //This article is part of a series on the Fabric Transfer API. [[tutorial:transfer-api|Link to the home page of the series]].// //This article is part of a series on the Fabric Transfer API. [[tutorial:transfer-api|Link to the home page of the series]].//
  
Line 76: Line 76:
  
 ==== SingleVariantStorage, FilteringStorage, CombinedStorage ==== ==== SingleVariantStorage, FilteringStorage, CombinedStorage ====
-The helpers described on the [[transfer-api/fluid_implementation|fluid implementation page]] can be used just fine for item transfer. However, screen handler interactions make heavy use of mutable ''ItemStack''s. So **if you are implementing an item-containing block with GUI slots, you should avoid ''SingleVariantStorage''** and look at the other solutions below instead. However, ''FilteringStorage'' and ''CombinedStorage'' might still be useful to you.+The helpers described on the [[transfer-api/fluid_implementation|fluid implementation page]] can be used just fine for item transfer. However, screen handler interactions make heavy use of mutable ''ItemStack''s. So **if you are implementing an item-containing block with GUI slots, you should avoid ''SingleVariantStorage''** and look at the other solutions below instead. 
 + 
 +''FilteringStorage'' and ''CombinedStorage'' might still be useful to you.
  
 ==== Use SimpleInventory ==== ==== Use SimpleInventory ====
tutorial/transfer-api_item_storage.txt · Last modified: 2022/02/04 17:37 by 127.0.0.1