Interface Storage
public interface Storage
-
Method Summary
Modifier and TypeMethodDescriptionbrushes()
Get the brushes storagedefault void
Migrate the storage into this storage.presets()
Get the preset storagedefault void
reload()
Reload the data for that storage from diskdefault void
save()
Attempts to save the storage.default void
shutdown()
Called when the plugin shuts down and the storages get unregistered.
-
Method Details
-
presets
Presets presets()Get the preset storage- Returns:
- preset storage
-
brushes
Brushes brushes()Get the brushes storage- Returns:
- brushes storages
-
migrate
Migrate the storage into this storage. This will override entries if they already exist whith the same name. This will not remove already existing entries.- Parameters:
storage
- storage with entries to add.
-
save
default void save()Attempts to save the storage.Only required for file based storages.
-
shutdown
default void shutdown()Called when the plugin shuts down and the storages get unregistered. -
reload
default void reload()Reload the data for that storage from disk
-