Class ImportManager

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

public final class ImportManager extends Object
Imports graves from external plugins (currently AngelChest) and converts them to GravesX Grave objects.
  • Constructor Details

    • ImportManager

      public ImportManager(Graves plugin)
      Creates a new importer bound to the given plugin instance.
      Parameters:
      plugin - the GravesX plugin instance
  • Method Details

    • countAngelChestImportableOnly

      public long countAngelChestImportableOnly()
      Counts AngelChest graves that will import successfully
      Returns:
      the number of graves that can be imported from AngelChest
    • importExternalPluginAngelChest

      public List<Grave> importExternalPluginAngelChest()
      Imports all AngelChest graves found on disk.
      Returns:
      a list of converted Grave objects
    • countAngelChestStatusText

      public String countAngelChestStatusText()
      Dry-run scan (text): counts total/importable/missing-world/invalid-YAML AngelChest files. Does NOT create graves or inventories.
      Returns:
      multiline human-readable summary
    • listAngelChestMissingWorldText

      public String listAngelChestMissingWorldText()
      Dry-run scan (text): list files whose world cannot be resolved on this server, including helpful hints (UUIDs/names/coords) to aid manual fixes or world restores.
      Returns:
      multiline human-readable list of missing-world entries
    • convertAngelChestToGrave

      public Grave convertAngelChestToGrave(File file)
      Converts a single AngelChest YAML file into a Grave, applying fallbacks for world, coords, and metadata.
      Parameters:
      file - the AngelChest YAML file to convert
      Returns:
      the converted Grave, or null if the file is invalid