Class AxVaultsMigrationService

java.lang.Object
com.enhancedechest.migration.AxVaultsMigrationService

public final class AxVaultsMigrationService extends Object
Migrates vaults from an AxVaults installation into EnhancedEchest's storage.

Each AxVaults vault is imported into the EnhancedEchest chest at the same index (vault #3 → chest #3), so a player's layout carries over. A vault is only written when no chest already holds data at that index — a chest with existing contents is left untouched and counted as skipped, which makes the migration safe to re-run and prevents it from ever overwriting live data.

All work here is synchronous; callers dispatch it onto the shared DB executor. The vault items are already decoded by AxVaultsReader; this class only resizes/encodes/writes into storage.

  • Constructor Details

    • AxVaultsMigrationService

      public AxVaultsMigrationService()
  • Method Details