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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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