Interface StorageInteraction<T>

Type Parameters:
T - The type of resource being moved.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface StorageInteraction<T>
Since:
1.3.8
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    moveResources(net.fabricmc.fabric.api.transfer.v1.storage.Storage<T> storage, T resource, long maxAmount, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext transaction)
     
    default long
    moveResources(net.fabricmc.fabric.api.transfer.v1.storage.Storage<T> storage, T resource, long maxAmount, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext transaction, boolean simulate)
     
  • Method Details

    • moveResources

      long moveResources(net.fabricmc.fabric.api.transfer.v1.storage.Storage<T> storage, T resource, long maxAmount, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext transaction)
    • moveResources

      default long moveResources(net.fabricmc.fabric.api.transfer.v1.storage.Storage<T> storage, T resource, long maxAmount, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext transaction, boolean simulate)