Interface PlayerProvider
public interface PlayerProvider
The player provider offers the possibility to get already filtered cloud players. In addition, not always the whole
CloudPlayer object must be sent over the network, but only the really desired result, such as all unique
ids.
Currently, there are these player providers:
- a player provider for all players
PlayerManager.onlinePlayers() - a player provider for all players on a certain task
PlayerManager.taskOnlinePlayers(String) - a player provider for all players on a certain group
PlayerManager.groupOnlinePlayers(String)
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionintcount()Gets the count of supplied players by this player provider.Gets the count of supplied players by this player provider asynchronously.names()Gets all player names for all players supplied by this player provider.Gets all player names for all players supplied by this player provider asynchronously.players()Gets all players supplied by this player provider as cloud players.Gets all players supplied by this player provider as cloud players asynchronously.Gets all unique ids of the players supplied by this player provider.Gets all unique ids of the players supplied by this player provider asynchronously.
-
Method Details
-
players
Gets all players supplied by this player provider as cloud players.- Returns:
- all supplied cloud players.
-
uniqueIds
Gets all unique ids of the players supplied by this player provider.- Returns:
- all supplied unique ids.
-
names
Gets all player names for all players supplied by this player provider.- Returns:
- all supplied player names.
-
count
int count()Gets the count of supplied players by this player provider.- Returns:
- the amount of supplied players.
-
playersAsync
Gets all players supplied by this player provider as cloud players asynchronously.- Returns:
- a task containing all supplied cloud players.
-
uniqueIdsAsync
Gets all unique ids of the players supplied by this player provider asynchronously.- Returns:
- a task containing all supplied unique ids.
-
namesAsync
Gets all player names for all players supplied by this player provider asynchronously.- Returns:
- a task containing all supplied player names.
-
countAsync
Gets the count of supplied players by this player provider asynchronously.- Returns:
- a task containing the amount of supplied players.
-