public class NetworkUtils extends Object
Modifier and Type | Field and Description |
---|---|
static ListeningExecutorService |
downloadExecutor |
private static Logger |
LOGGER |
Constructor and Description |
---|
NetworkUtils() |
Modifier and Type | Method and Description |
---|---|
static CompletableFuture<?> |
download(File file,
String string,
Map<String,String> map,
int int2,
ProgressListener progressListener,
Proxy proxy) |
static int |
findLocalPort() |
private static final Logger LOGGER
public static final ListeningExecutorService downloadExecutor
@Environment(value=CLIENT) public static CompletableFuture<?> download(File file, String string, Map<String,String> map, int int2, @Nullable ProgressListener progressListener, Proxy proxy)
public static int findLocalPort()