Class ClientProfile.ServerProfile

java.lang.Object
pro.gravit.launcher.base.profiles.ClientProfile.ServerProfile
All Implemented Interfaces:
pro.gravit.launcher.core.api.features.ProfileFeatureAPI.ClientProfile.ServerInfo
Enclosing class:
ClientProfile

public static class ClientProfile.ServerProfile extends Object implements pro.gravit.launcher.core.api.features.ProfileFeatureAPI.ClientProfile.ServerInfo
  • Field Details

    • name

      public String name
    • serverAddress

      public String serverAddress
    • serverPort

      public int serverPort
    • isDefault

      public boolean isDefault
    • protocol

      public int protocol
    • socketPing

      public boolean socketPing
  • Constructor Details

    • ServerProfile

      public ServerProfile()
    • ServerProfile

      public ServerProfile(String name, String serverAddress, int serverPort)
    • ServerProfile

      public ServerProfile(String name, String serverAddress, int serverPort, boolean isDefault)
  • Method Details

    • toSocketAddress

      public InetSocketAddress toSocketAddress()
    • getAddress

      public String getAddress()
      Specified by:
      getAddress in interface pro.gravit.launcher.core.api.features.ProfileFeatureAPI.ClientProfile.ServerInfo
    • getPort

      public int getPort()
      Specified by:
      getPort in interface pro.gravit.launcher.core.api.features.ProfileFeatureAPI.ClientProfile.ServerInfo