Package net.minecraft.network
Class ServerAddress
java.lang.Object
net.minecraft.network.ServerAddress
@Environment(CLIENT) public class ServerAddress extends Object
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateServerAddress(String address, int int2) -
Method Summary
Modifier and Type Method Description StringgetAddress()intgetPort()static ServerAddressparse(String address)private static intportOrDefault(String port, int def)private static com.mojang.datafixers.util.Pair<String,Integer>resolveServer(String address)
-
Field Details
-
address
-
port
private final int port
-
-
Constructor Details
-
ServerAddress
-
-
Method Details
-
getAddress
-
getPort
public int getPort() -
parse
-
resolveServer
-
portOrDefault
-