Class CustomEnderChestMigrationService

java.lang.Object
com.enhancedechest.migration.CustomEnderChestMigrationService

public final class CustomEnderChestMigrationService extends Object
Migrates ender chests from a CustomEnderChest (maiminhdung) installation into EnhancedEchest's storage.

Unlike AxVaults/PlayerVaultsX, CustomEnderChest gives each player a single ender chest, so it is imported into EnhancedEchest's own base chest #1 — never into a different index. Chest #1 is only written when it does not already hold contents, which makes the migration safe to re-run and prevents it from ever overwriting a chest the player has already used.

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