Package net.frozenblock.lib.storage.api
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 TypeMethodDescriptiondefault longextract(T resource, long maxAmount, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext transaction) default longinsert(T resource, long maxAmount, net.fabricmc.fabric.api.transfer.v1.transaction.TransactionContext transaction) iterator()default booleandefault booleanMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:
insertin interfacenet.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:
extractin interfacenet.fabricmc.fabric.api.transfer.v1.storage.Storage<T>
-
supportsInsertion
default boolean supportsInsertion()- Specified by:
supportsInsertionin interfacenet.fabricmc.fabric.api.transfer.v1.storage.Storage<T>
-
supportsExtraction
default boolean supportsExtraction()- Specified by:
supportsExtractionin interfacenet.fabricmc.fabric.api.transfer.v1.storage.Storage<T>
-
iterator
-