Package net.frozenblock.lib.storage.api
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 -
Method Summary
Modifier and TypeMethodDescriptionlongextract(T resource, long maxAmount, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext transaction) longinsert(T resource, long maxAmount, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext transaction) iterator()booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.fabricmc.fabric.api.transfer.v1.storage.Storage
getVersion, nonEmptyIterator, nonEmptyViews
-
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:
insertin interfacenet.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:
extractin interfacenet.fabricmc.fabric.api.transfer.v1.storage.Storage<T>
-
supportsInsertion
public boolean supportsInsertion()- Specified by:
supportsInsertionin interfacenet.fabricmc.fabric.api.transfer.v1.storage.Storage<T>
-
supportsExtraction
public boolean supportsExtraction()- Specified by:
supportsExtractionin interfacenet.fabricmc.fabric.api.transfer.v1.storage.Storage<T>
-
iterator
-