Interface ClientPingServerEvent.Response.Players

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<GameProfile> profiles()
      Gets an mutable list of online players on the server to display on the client.
      void setMax​(int max)
      Sets the maximum amount of allowed players to display on the client.
      void setOnline​(int online)
      Sets the amount of online players to display on the client.
    • Method Detail

      • setOnline

        void setOnline​(int online)
        Sets the amount of online players to display on the client.
        Parameters:
        online - The amount of online players
      • setMax

        void setMax​(int max)
        Sets the maximum amount of allowed players to display on the client.
        Parameters:
        max - The maximum amount of players
      • profiles

        java.util.List<GameProfile> profiles()
        Gets an mutable list of online players on the server to display on the client.
        Specified by:
        profiles in interface StatusResponse.Players
        Returns:
        A mutable list of online players