Package dev.deepcore.challenge.session
Class RunCompletionService
java.lang.Object
dev.deepcore.challenge.session.RunCompletionService
Coordinates dragon-kill completion flow, run record persistence, and return
countdown.
-
Constructor Summary
ConstructorsConstructorDescriptionRunCompletionService(SessionState sessionState, RunProgressService runProgressService, CompletionReturnService completionReturnService, Supplier<RunRecordsService> recordsServiceSupplier, Set<UUID> participants, Supplier<WorldResetManager> worldResetManagerSupplier, Runnable endChallengeAndReturnToPrep, DeepCoreLogger log) Creates a run completion service. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleEntityDeath(org.bukkit.event.entity.EntityDeathEvent event) Handles entity death events and triggers completion flow on dragon kill.
-
Constructor Details
-
RunCompletionService
public RunCompletionService(SessionState sessionState, RunProgressService runProgressService, CompletionReturnService completionReturnService, Supplier<RunRecordsService> recordsServiceSupplier, Set<UUID> participants, Supplier<WorldResetManager> worldResetManagerSupplier, Runnable endChallengeAndReturnToPrep, DeepCoreLogger log) Creates a run completion service.- Parameters:
sessionState- mutable session phase/timing staterunProgressService- run progress and split tracking servicecompletionReturnService- completion return countdown servicerecordsServiceSupplier- supplier for records persistence serviceparticipants- participant UUID set for current runworldResetManagerSupplier- supplier for world reset managerendChallengeAndReturnToPrep- fallback action to return session to preplog- logger for completion lifecycle messages
-
-
Method Details
-
handleEntityDeath
public void handleEntityDeath(org.bukkit.event.entity.EntityDeathEvent event) Handles entity death events and triggers completion flow on dragon kill.- Parameters:
event- entity death event to inspect
-