Package net.minecraft.client.util
Class NetworkUtils
java.lang.Object
net.minecraft.client.util.NetworkUtils
public class NetworkUtils extends Object
- Mappings:
Namespace Name official afxintermediary net/minecraft/class_3521named net/minecraft/client/util/NetworkUtils
-
Field Summary
Fields Modifier and Type Field Description static ListeningExecutorServicedownloadExecutorprivate static LoggerLOGGER -
Constructor Summary
Constructors Constructor Description NetworkUtils() -
Method Summary
Modifier and Type Method Description static CompletableFuture<?>download(File file, String string, Map<String,String> map, int int2, ProgressListener progressListener, Proxy proxy)static intfindLocalPort()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLafx;b:Lorg/apache/logging/log4j/Logger;intermediary field_15665Lnet/minecraft/class_3521;field_15665:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/util/NetworkUtils;LOGGER:Lorg/apache/logging/log4j/Logger;
-
downloadExecutor
- Mappings:
Namespace Name Mixin selector official aLafx;a:Lcom/google/common/util/concurrent/ListeningExecutorService;intermediary field_15664Lnet/minecraft/class_3521;field_15664:Lcom/google/common/util/concurrent/ListeningExecutorService;named downloadExecutorLnet/minecraft/client/util/NetworkUtils;downloadExecutor:Lcom/google/common/util/concurrent/ListeningExecutorService;
-
-
Constructor Details
-
NetworkUtils
public NetworkUtils()
-
-
Method Details
-
download
@Environment(CLIENT) public static CompletableFuture<?> download(File file, String string, Map<String,String> map, int int2, @Nullable ProgressListener progressListener, Proxy proxy)- Mappings:
Namespace Name Mixin selector official aLafx;a(Ljava/io/File;Ljava/lang/String;Ljava/util/Map;ILagd;Ljava/net/Proxy;)Ljava/util/concurrent/CompletableFuture;intermediary method_15301Lnet/minecraft/class_3521;method_15301(Ljava/io/File;Ljava/lang/String;Ljava/util/Map;ILnet/minecraft/class_3536;Ljava/net/Proxy;)Ljava/util/concurrent/CompletableFuture;named downloadLnet/minecraft/client/util/NetworkUtils;download(Ljava/io/File;Ljava/lang/String;Ljava/util/Map;ILnet/minecraft/util/ProgressListener;Ljava/net/Proxy;)Ljava/util/concurrent/CompletableFuture;
-
findLocalPort
public static int findLocalPort()- Mappings:
Namespace Name Mixin selector official aLafx;a()Iintermediary method_15302Lnet/minecraft/class_3521;method_15302()Inamed findLocalPortLnet/minecraft/client/util/NetworkUtils;findLocalPort()I
-