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

    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

    • online

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

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

      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