Class ParticipantsView

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

public final class ParticipantsView extends Object
Provides filtered views over online players and active participants.
  • Constructor Details

    • ParticipantsView

      public ParticipantsView()
  • Method Details

    • onlinePlayers

      public List<org.bukkit.entity.Player> onlinePlayers()
      Returns a snapshot list of all currently online players.
      Returns:
      snapshot list of players currently online
    • onlineCount

      public int onlineCount()
      Returns the number of currently online players.
      Returns:
      count of currently online players
    • onlinePlayerIds

      public Set<UUID> onlinePlayerIds()
      Returns UUIDs of all currently online players.
      Returns:
      set of UUIDs for currently online players
    • onlineParticipants

      public List<org.bukkit.entity.Player> onlineParticipants(Set<UUID> participants)
      Returns online players whose UUID appears in the participant set.
      Parameters:
      participants - participant UUIDs to match against online players
      Returns:
      online players included in the participant set
    • activeParticipants

      public List<org.bukkit.entity.Player> activeParticipants(Set<UUID> participants)
      Returns online non-spectator participants.
      Parameters:
      participants - participant UUIDs to filter against online players
      Returns:
      online participants whose game mode is not spectator
    • sharedVitalsParticipants

      public List<org.bukkit.entity.Player> sharedVitalsParticipants(boolean runningPhase, Set<UUID> participants)
      Returns players to include in shared-vitals sync for the given phase.
      Parameters:
      runningPhase - whether the challenge is currently in running phase
      participants - participant UUIDs to include when running
      Returns:
      participants to target for shared-vitals synchronization