Class NoInteractionStorage<T>

java.lang.Object
net.frozenblock.lib.storage.api.NoInteractionStorage<T>
All Implemented Interfaces:
Iterable<net.fabricmc.fabric.api.transfer.v1.storage.StorageView<T>>, net.fabricmc.fabric.api.transfer.v1.storage.Storage<T>

public class NoInteractionStorage<T> extends Object implements net.fabricmc.fabric.api.transfer.v1.storage.Storage<T>
  • Constructor Details

    • NoInteractionStorage

      public NoInteractionStorage()
  • Method Details

    • insert

      public 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

      public 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

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

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

      public 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>