Package com.enhancedechest.migration
Class CustomEnderChestMigrationService
java.lang.Object
com.enhancedechest.migration.CustomEnderChestMigrationService
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOutcome of a migration run. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMigrates every player found in the CustomEnderChest playerdata folder.migratePlayer(UUID owner) Migrates a single player by UUID.booleanTrue if CustomEnderChest YAML player data is present to migrate from.
-
Constructor Details
-
CustomEnderChestMigrationService
public CustomEnderChestMigrationService()
-
-
Method Details