2025-11-24 22:52:51 +03:00

43 lines
977 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.client.multiplayer.resolver;
import java.net.InetSocketAddress;
public interface ResolvedServerAddress {
public String getHostName();
public String getHostIp();
public int getPort();
public InetSocketAddress asInetSocketAddress();
public static ResolvedServerAddress from(final InetSocketAddress address) {
return new ResolvedServerAddress(){
@Override
public String getHostName() {
return address.getAddress().getHostName();
}
@Override
public String getHostIp() {
return address.getAddress().getHostAddress();
}
@Override
public int getPort() {
return address.getPort();
}
@Override
public InetSocketAddress asInetSocketAddress() {
return address;
}
};
}
}