Package com.ranull.graves.manager
Class ImportManager
java.lang.Object
com.ranull.graves.manager.ImportManager
The ImportManager class handles the import of graves from external plugins.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImportManager(Graves plugin) Initializes a new instance of the ImportManager class. -
Method Summary
Modifier and TypeMethodDescriptionconvertAngelChestToGrave(File file) Converts an AngelChest file to a Grave object.Imports graves from the AngelChest plugin.Imports graves from external plugins.private org.bukkit.configuration.file.FileConfigurationLoads a YAML file and returns its configuration.
-
Field Details
-
plugin
The main plugin instance associated with Graves.This
Gravesinstance represents the core plugin that this Graves is part of. It provides access to the plugin's functionality, configuration, and other services.
-
-
Constructor Details
-
ImportManager
Initializes a new instance of the ImportManager class.- Parameters:
plugin- The plugin instance.
-
-
Method Details
-
importExternalPluginGraves
Imports graves from external plugins.- Returns:
- A list of imported graves.
-
importAngelChest
Imports graves from the AngelChest plugin.- Returns:
- A list of graves imported from AngelChest.
-
convertAngelChestToGrave
Converts an AngelChest file to a Grave object.- Parameters:
file- The AngelChest file.- Returns:
- The converted Grave object.
-
loadFile
Loads a YAML file and returns its configuration.- Parameters:
file- The file to load.- Returns:
- The file configuration.
-