@Environment(value=CLIENT) public class ServerAddress extends Object
Modifier and Type | Field and Description |
---|---|
private String |
address |
private int |
port |
Modifier | Constructor and Description |
---|---|
private |
ServerAddress(String address,
int int2) |
Modifier and Type | Method and Description |
---|---|
String |
getAddress() |
int |
getPort() |
static ServerAddress |
parse(String address) |
private static int |
portOrDefault(String port,
int def) |
private static com.mojang.datafixers.util.Pair<String,Integer> |
resolveServer(String address) |
private final String address
private final int port
private ServerAddress(String address, int int2)
public String getAddress()
public int getPort()
public static ServerAddress parse(String address)
private static com.mojang.datafixers.util.Pair<String,Integer> resolveServer(String address)
private static int portOrDefault(String port, int def)