Interface ExtractableStorage
- All Known Subinterfaces:
CompositeAwareChild,CompositeStorage,ExternalStorageProvider,FuzzyRootStorage,LimitedStorage,RootStorage,SerializableStorage,Storage,StorageNetworkComponent,TrackedStorage
- All Known Implementing Classes:
AbstractProxyStorage,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 ExtractableStorage
Represents a storage that can be extracted from.
-
Method Summary
Modifier and TypeMethodDescriptionlongextract(ResourceKey resource, long amount, Action action, Actor actor) Extracts a resource from a storage.
-
Method Details
-
extract
Extracts a resource from a storage.- Parameters:
resource- the resource, may not be nullamount- the amount, must be larger than 0action- the mode of extractionactor- the source- Returns:
- the amount extracted
-