Package dev.deepcore.challenge.session
Class DegradingInventoryTickerService
java.lang.Object
dev.deepcore.challenge.session.DegradingInventoryTickerService
Schedules and applies degrading-inventory slot reductions during active runs.
-
Constructor Summary
ConstructorsConstructorDescriptionDegradingInventoryTickerService(org.bukkit.plugin.java.JavaPlugin plugin, TaskGroup taskGroup, String degradingTaskKey, SessionState sessionState, ChallengeManager challengeManager, ChallengeConfigView configView, DegradingInventoryService degradingInventoryService, Supplier<List<org.bukkit.entity.Player>> onlineParticipantsSupplier, Consumer<org.bukkit.entity.Player> enforceInventorySlotCap, DeepCoreLogger log) Creates a degrading inventory ticker service. -
Method Summary
Modifier and TypeMethodDescriptionvoidstart(boolean resetSlots) Starts periodic degrading-inventory slot reduction for active runs.
-
Constructor Details
-
DegradingInventoryTickerService
public DegradingInventoryTickerService(org.bukkit.plugin.java.JavaPlugin plugin, TaskGroup taskGroup, String degradingTaskKey, SessionState sessionState, ChallengeManager challengeManager, ChallengeConfigView configView, DegradingInventoryService degradingInventoryService, Supplier<List<org.bukkit.entity.Player>> onlineParticipantsSupplier, Consumer<org.bukkit.entity.Player> enforceInventorySlotCap, DeepCoreLogger log) Creates a degrading inventory ticker service.- Parameters:
plugin- plugin scheduler and lifecycle ownertaskGroup- grouped task lifecycle managerdegradingTaskKey- task key for degrading-inventory tickersessionState- mutable session phase/state containerchallengeManager- challenge settings and component managerconfigView- challenge config value accessordegradingInventoryService- degrading-inventory state serviceonlineParticipantsSupplier- supplier for currently online participantsenforceInventorySlotCap- consumer applying inventory slot limitslog- challenge logger for player/admin messaging
-
-
Method Details
-
start
public void start(boolean resetSlots) Starts periodic degrading-inventory slot reduction for active runs.- Parameters:
resetSlots- true to reset allowed slot count before starting ticker
-