tutorial:transfer-api_item_storage
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:transfer-api_item_storage [2022/02/04 17:15] – [Dealing with Inventory/SidedInventory and PlayerInventory] technici4n | tutorial:transfer-api_item_storage [2022/02/04 17:37] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Fabric Transfer API: Understanding | + | ====== Fabric Transfer API: Item transfer with Storage< |
//This article is part of a series on the Fabric Transfer API. [[tutorial: | //This article is part of a series on the Fabric Transfer API. [[tutorial: | ||
Line 69: | Line 69: | ||
[[https:// | [[https:// | ||
+ | |||
+ | **A word of caution**: To be able to support transactions, | ||
===== How to implement Storage< | ===== How to implement Storage< | ||
Line 74: | Line 76: | ||
==== SingleVariantStorage, | ==== SingleVariantStorage, | ||
- | The helpers described on the [[transfer-api/ | + | The helpers described on the [[transfer-api/ |
+ | |||
+ | '' | ||
==== Use SimpleInventory ==== | ==== Use SimpleInventory ==== | ||
Line 121: | Line 125: | ||
* Multiple '' | * Multiple '' | ||
* (Advanced) You can have your '' | * (Advanced) You can have your '' | ||
+ | |||
+ | ==== Use SingleStackStorage ==== | ||
+ | Another (more complicated) option is to store a stack or a list of stacks somewhere, and also a [[https:// | ||
+ | |||
+ | ==== (Discouraged) Directly implement Inventory or SidedInventory ==== | ||
+ | For compatibility with existing vanilla inventories, | ||
+ | * Performance: | ||
+ | * Code size: this will require more code than using '' | ||
+ | * Flexibility: | ||
+ | * Correctness: |
tutorial/transfer-api_item_storage.1643994916.txt.gz · Last modified: 2022/02/04 17:15 by technici4n