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:

Since:
4.0
  • 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.