User Tools

Site Tools


tutorial:transfer-api

This is an old revision of the document!


Fluid, Item and Energy Transfer

This series of tutorials is meant to explain how the Fabric Transfer API works, and how you can use it for your own mods. Please make sure that you read all of these tutorials in order, even if you are only interested by item transfer. For any question, please go to the #transfer-api-debating channel on the official Fabric Discord server.

The Fluid Transfer API

  1. Creating a simple tank walks you through how you can create a simple tank, and what FluidVariant is.
  2. Understanding Storage<FluidVariant> teaches what Storage<FluidVariant> is and how to use it.
  3. [Not yet written] This tutorial will provide an overview of the provided base implementations and how they can be used.

The Item Transfer API

  1. [Not yet written] This tutorial will explain how the item API is almost the same as the fluid API, and how wrappers around Inventory/PlayerInventory can be retrieved.
  2. [Not yet written] Same as the fluid tutorial, but will also explain SingleStackStorage and how to use Inventory/SidedInventory/InventoryProvider.

Fluid-containing items

  1. [Not yet written] How to use and implement the fluid-containing item API.

The TechReborn Energy API

  1. [Not yet written] How to use and implement the TR energy API.
tutorial/transfer-api.1643820164.txt.gz · Last modified: 2022/02/02 16:42 by technici4n