Interface StorageRegistry
A class which represents a storage registry.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Storage
Get the active storage, which is defined in theGeneralConfig.storageType()
or a fallbackStorage
.Migrate a source storage into a target storagedefault void
reload()
Methods inherited from interface de.eldoria.schematicbrush.registry.Registry
get, isRegistered, register, registry, unregister
-
Field Details
-
YAML
The default storage method which should be always available.
-
-
Method Details
-
activeStorage
Get the active storage, which is defined in theGeneralConfig.storageType()
or a fallbackStorage
.- Returns:
- storage
-
migrate
Migrate a source storage into a target storage- Parameters:
source
- sourcetarget
- target- Returns:
- Returns a future which completes once all underlying processes complete
-
reload
default void reload()
-