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 TypeMethodDescriptionvoid
Adds a source and resorts them.void
Clears all sources.void
removeSource
(Storage source) Removes a source and resorts them.void
Sorts storages that implementPriorityProvider
.Methods inherited from interface com.refinedmods.refinedstorage.api.storage.ExtractableStorage
extract
Methods inherited from interface com.refinedmods.refinedstorage.api.storage.InsertableStorage
insert
Methods inherited from interface com.refinedmods.refinedstorage.api.storage.StorageView
getAll, getStored
Methods 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.
-