Klasse WorldGuardImportService
java.lang.Object
de.delinkedde.areashopreborn.application.WorldGuardImportService
Discovers and resumably imports top-level WorldGuard cuboids as managed cities.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungWorldGuardImportService(Database database, EstateRepository estates, EstateApplicationService application, WorldGuardGateway worldGuard, ThreadBridge threads) Creates the WorldGuard import service.WorldGuardImportService(Database database, EstateRepository estates, EstateApplicationService application, WorldGuardGateway worldGuard, ThreadBridge threads, int maximumCandidates, int maximumReportDetails) Creates a resource-bounded WorldGuard import service. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungimportCities(UUID actorId, UUID landlordId, String worldKey, boolean dryRun) Previews or executes import of eligible regions in one loaded world.
-
Konstruktordetails
-
WorldGuardImportService
public WorldGuardImportService(Database database, EstateRepository estates, EstateApplicationService application, WorldGuardGateway worldGuard, ThreadBridge threads) Creates the WorldGuard import service.- Parameter:
database- asynchronous database executorestates- estate repositoryapplication- city import use caseworldGuard- WorldGuard adapterthreads- main-thread bridge
-
WorldGuardImportService
public WorldGuardImportService(Database database, EstateRepository estates, EstateApplicationService application, WorldGuardGateway worldGuard, ThreadBridge threads, int maximumCandidates, int maximumReportDetails) Creates a resource-bounded WorldGuard import service.- Parameter:
database- asynchronous database executorestates- estate repositoryapplication- city import use caseworldGuard- WorldGuard adapterthreads- main-thread bridgemaximumCandidates- hard candidate ceiling before any writemaximumReportDetails- maximum detail lines retained in memory
-
-
Methodendetails
-
importCities
public CompletableFuture<ImportReport> importCities(UUID actorId, UUID landlordId, String worldKey, boolean dryRun) Previews or executes import of eligible regions in one loaded world.Each city is committed independently. A repeated run skips already imported protection identifiers, making recovery from a partial batch explicit and resumable.
- Parameter:
actorId- administrator performing the importlandlordId- landlord assigned to every newly imported cityworldKey- loaded Bukkit world keydryRun- whether to report without writing- Gibt zurück:
- future containing import decisions
-