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

@API(status=STABLE, since="2.0.0-milestone.1.4") public interface TrackedStorage extends Storage
A storage that is able to track resources being modified.
  • Method Details

    • findTrackedResourceByActorType

      Optional<TrackedResource> findTrackedResourceByActorType(ResourceKey resource, Class<? extends Actor> actorType)
      Finds the tracked resource by actor type.
      Parameters:
      resource - the resource
      actorType - the actor type
      Returns:
      the tracked resource modified by the given actor type, if present