Package com.ranull.graves.manager
Class ImportManager
java.lang.Object
com.ranull.graves.manager.ImportManager
Imports graves from external plugins (currently AngelChest) and converts them to GravesX
Grave
objects.-
Constructor Summary
ConstructorsConstructorDescriptionImportManager
(Graves plugin) Creates a new importer bound to the given plugin instance. -
Method Summary
Modifier and TypeMethodDescriptionconvertAngelChestToGrave
(File file) Converts a single AngelChest YAML file into aGrave
, applying fallbacks for world, coords, and metadata.long
Counts AngelChest graves that will import successfullyDry-run scan (text): counts total/importable/missing-world/invalid-YAML AngelChest files.Imports all AngelChest graves found on disk.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.
-
Constructor Details
-
ImportManager
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
Imports all AngelChest graves found on disk.- Returns:
- a list of converted
Grave
objects
-
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
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
Converts a single AngelChest YAML file into aGrave
, applying fallbacks for world, coords, and metadata.- Parameters:
file
- the AngelChest YAML file to convert- Returns:
- the converted
Grave
, ornull
if the file is invalid
-