Interface CompositeStorage
- All Superinterfaces:
ExtractableStorage,InsertableStorage,Storage,StorageView,TrackedStorage
- All Known Implementing Classes:
CompositeStorageImpl
@API(status=STABLE,
since="2.0.0-milestone.1.0")
public interface CompositeStorage
extends Storage, TrackedStorage
This represents a single storage that can be backed by multiple storages.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a source and resorts them.voidClears all sources.voidremoveSource(Storage source) Removes a source and resorts them.voidSorts storages that implementPriorityProvider.Methods inherited from interface com.refinedmods.refinedstorage.api.storage.ExtractableStorage
extractMethods inherited from interface com.refinedmods.refinedstorage.api.storage.InsertableStorage
insertMethods inherited from interface com.refinedmods.refinedstorage.api.storage.StorageView
getAll, getStoredMethods inherited from interface com.refinedmods.refinedstorage.api.storage.tracked.TrackedStorage
findTrackedResourceByActorType
-
Method Details
-
sortSources
void sortSources()Sorts storages that implementPriorityProvider. -
addSource
Adds a source and resorts them.- Parameters:
source- the source
-
removeSource
Removes a source and resorts them.- Parameters:
source- the source
-
getSources
- Returns:
- an unmodifiable source list
-
clearSources
void clearSources()Clears all sources.
-