Interface InsertableStorage
- All Known Subinterfaces:
CompositeAwareChild, CompositeStorage, ExternalStorageProvider, FuzzyRootStorage, LimitedStorage, RootStorage, SerializableStorage, Storage, StorageNetworkComponent, TrackedStorage
- All Known Implementing Classes:
AbstractProxyStorage, BucketPlayerInventoryInsertableStorage, CompositeStorageImpl, ExternalStorage, InterfaceProxyExternalStorageProvider, LimitedStorageImpl, NoopStorage, PlatformStorageNetworkComponent, PriorityStorage, RootStorageImpl, StateTrackedStorage, StorageImpl, com.refinedmods.refinedstorage.api.network.impl.storage.StorageNetworkComponentImpl, TrackedStorageImpl
@API(status=STABLE,
since="2.0.0-milestone.1.2")
public interface InsertableStorage
Represents a storage that can be inserted into.
-
Method Summary
Modifier and TypeMethodDescriptionlonginsert(ResourceKey resource, long amount, Action action, Actor actor) Inserts a resource into a storage.
-
Method Details
-
insert
Inserts a resource into a storage.- Parameters:
resource- the resource, may not be nullamount- the amount, must be larger than 0action- the mode of insertionactor- the source- Returns:
- the amount inserted
-