Class SessionParticipantContextService

java.lang.Object
dev.deepcore.challenge.session.SessionParticipantContextService

public final class SessionParticipantContextService extends Object
Provides centralized participant and challenge-state queries for session services.
  • Constructor Details

    • SessionParticipantContextService

      public SessionParticipantContextService(ChallengeManager challengeManager, SessionState sessionState, ParticipantsView participantsView, Set<UUID> participants)
      Creates a session participant context service.
      Parameters:
      challengeManager - challenge settings and component manager
      sessionState - mutable session phase/state container
      participantsView - participant roster and counts view
      participants - active run participants
  • Method Details

    • isRunningPhase

      public boolean isRunningPhase()
    • getPlayersForSharedVitals

      public List<org.bukkit.entity.Player> getPlayersForSharedVitals()
    • getOnlineParticipants

      public List<org.bukkit.entity.Player> getOnlineParticipants()
    • getActiveParticipants

      public List<org.bukkit.entity.Player> getActiveParticipants()
    • isChallengeActive

      public boolean isChallengeActive(org.bukkit.entity.Player player)
    • isSharedInventoryEnabled

      public boolean isSharedInventoryEnabled()