Interface StatusResponse.Players

All Known Subinterfaces:
ClientPingServerEvent.Response.Players
Enclosing interface:
StatusResponse

public static interface StatusResponse.Players
Represents the player count, slots and a list of players current playing on a server.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    int
    max()
    Gets the maximum amount of allowed players on the server.
    int
    Gets the amount of online players on the server.
    Gets an immutable list of online players on the server to display on the client.
  • Method Details Link icon

    • online Link icon

      int online()
      Gets the amount of online players on the server.
      Returns:
      The amount of online players
    • max Link icon

      int max()
      Gets the maximum amount of allowed players on the server.
      Returns:
      The maximum amount of allowed players
    • profiles Link icon

      List<GameProfile> profiles()
      Gets an immutable list of online players on the server to display on the client.
      Returns:
      An immutable list of online players