Interface NoInteractionStorage<T>

All Superinterfaces:
Iterable<net.fabricmc.fabric.api.transfer.v1.storage.StorageView<T>>, net.fabricmc.fabric.api.transfer.v1.storage.Storage<T>

public interface NoInteractionStorage<T> extends net.fabricmc.fabric.api.transfer.v1.storage.Storage<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    default long
    extract(T resource, long maxAmount, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext transaction)
     
    default long
    insert(T resource, long maxAmount, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext transaction)
     
    default Iterator<net.fabricmc.fabric.api.transfer.v1.storage.StorageView<T>>
     
    default boolean
     
    default boolean
     

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface net.fabricmc.fabric.api.transfer.v1.storage.Storage

    exactView, getVersion, nonEmptyIterator, nonEmptyViews, simulateExtract, simulateInsert
  • Method Details

    • insert

      default long insert(T resource, long maxAmount, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext transaction)
      Specified by:
      insert in interface net.fabricmc.fabric.api.transfer.v1.storage.Storage<T>
    • extract

      default long extract(T resource, long maxAmount, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext transaction)
      Specified by:
      extract in interface net.fabricmc.fabric.api.transfer.v1.storage.Storage<T>
    • supportsInsertion

      default boolean supportsInsertion()
      Specified by:
      supportsInsertion in interface net.fabricmc.fabric.api.transfer.v1.storage.Storage<T>
    • supportsExtraction

      default boolean supportsExtraction()
      Specified by:
      supportsExtraction in interface net.fabricmc.fabric.api.transfer.v1.storage.Storage<T>
    • iterator

      default Iterator<net.fabricmc.fabric.api.transfer.v1.storage.StorageView<T>> iterator()
      Specified by:
      iterator in interface Iterable<T>
      Specified by:
      iterator in interface net.fabricmc.fabric.api.transfer.v1.storage.Storage<T>