Interface TrackedStorage
- All Superinterfaces:
ExtractableStorage, InsertableStorage, Storage, StorageView
- All Known Subinterfaces:
CompositeStorage, FuzzyRootStorage, RootStorage, StorageNetworkComponent
- All Known Implementing Classes:
CompositeStorageImpl, PlatformStorageNetworkComponent, RootStorageImpl, StateTrackedStorage, com.refinedmods.refinedstorage.api.network.impl.storage.StorageNetworkComponentImpl, TrackedStorageImpl
A storage that is able to track resources being modified.
-
Method Summary
Modifier and TypeMethodDescriptionfindTrackedResourceByActorType(ResourceKey resource, Class<? extends Actor> actorType) Finds the tracked resource by actor type.Methods inherited from interface ExtractableStorage
extractMethods inherited from interface InsertableStorage
insertMethods inherited from interface StorageView
getAll, getStored
-
Method Details
-
findTrackedResourceByActorType
Optional<TrackedResource> findTrackedResourceByActorType(ResourceKey resource, Class<? extends Actor> actorType) Finds the tracked resource by actor type.- Parameters:
resource- the resourceactorType- the actor type- Returns:
- the tracked resource modified by the given actor type, if present
-