Class ImportManager

java.lang.Object
com.ranull.graves.manager.ImportManager

public final class ImportManager extends Object
The ImportManager class handles the import of graves from external plugins.
  • Field Details

    • plugin

      private final Graves plugin
      The main plugin instance associated with Graves.

      This Graves instance 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

      public ImportManager(Graves plugin)
      Initializes a new instance of the ImportManager class.
      Parameters:
      plugin - The plugin instance.
  • Method Details

    • importExternalPluginGraves

      public List<Grave> importExternalPluginGraves()
      Imports graves from external plugins.
      Returns:
      A list of imported graves.
    • importAngelChest

      private List<Grave> importAngelChest()
      Imports graves from the AngelChest plugin.
      Returns:
      A list of graves imported from AngelChest.
    • convertAngelChestToGrave

      public Grave convertAngelChestToGrave(File file)
      Converts an AngelChest file to a Grave object.
      Parameters:
      file - The AngelChest file.
      Returns:
      The converted Grave object.
    • loadFile

      private org.bukkit.configuration.file.FileConfiguration loadFile(File file)
      Loads a YAML file and returns its configuration.
      Parameters:
      file - The file to load.
      Returns:
      The file configuration.