Package dev.deepcore.challenge.session
Class ParticipantsView
java.lang.Object
dev.deepcore.challenge.session.ParticipantsView
Provides filtered views over online players and active participants.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.bukkit.entity.Player> activeParticipants(Set<UUID> participants) Returns online non-spectator participants.intReturns the number of currently online players.List<org.bukkit.entity.Player> onlineParticipants(Set<UUID> participants) Returns online players whose UUID appears in the participant set.Returns UUIDs of all currently online players.List<org.bukkit.entity.Player> Returns a snapshot list of all currently online players.List<org.bukkit.entity.Player> sharedVitalsParticipants(boolean runningPhase, Set<UUID> participants) Returns players to include in shared-vitals sync for the given phase.
-
Constructor Details
-
ParticipantsView
public ParticipantsView()
-
-
Method Details
-
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
Returns UUIDs of all currently online players.- Returns:
- set of UUIDs for currently online players
-
onlineParticipants
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
Returns online non-spectator participants.- Parameters:
participants- participant UUIDs to filter against online players- Returns:
- online participants whose game mode is not spectator
-