Package net.minecraft.client.util
Class NetworkUtils
java.lang.Object
net.minecraft.client.util.NetworkUtils
A few client-side networking utilities.
- Implementation Note:
- This is not marked as client-only because it's used by the
 /publishcommand, which is only available to integrated servers yet was retained by proguard.
- Mappings:
- Namespace - Name - official - aos- intermediary - net/minecraft/class_3521- named - net/minecraft/client/util/NetworkUtils
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ListeningExecutorServiceprivate static final Logger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic CompletableFuture<?>downloadResourcePack(File file, URL url, Map<String, String> headers, int maxFileSize, @Nullable ProgressListener progressListener, Proxy proxy) static intstatic booleanisPortAvailable(int port) 
- 
Field Details- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - official - b- Laos;b:Lorg/slf4j/Logger;- intermediary - field_15665- Lnet/minecraft/class_3521;field_15665:Lorg/slf4j/Logger;- named - LOGGER- Lnet/minecraft/client/util/NetworkUtils;LOGGER:Lorg/slf4j/Logger;
 
- 
EXECUTOR- Mappings:
- Namespace - Name - Mixin selector - official - a- Laos;a:Lcom/google/common/util/concurrent/ListeningExecutorService;- intermediary - field_15664- Lnet/minecraft/class_3521;field_15664:Lcom/google/common/util/concurrent/ListeningExecutorService;- named - EXECUTOR- Lnet/minecraft/client/util/NetworkUtils;EXECUTOR:Lcom/google/common/util/concurrent/ListeningExecutorService;
 
 
- 
- 
Constructor Details- 
NetworkUtilsprivate NetworkUtils()
 
- 
- 
Method Details- 
downloadResourcePackpublic static CompletableFuture<?> downloadResourcePack(File file, URL url, Map<String, String> headers, int maxFileSize, @Nullable @Nullable ProgressListener progressListener, Proxy proxy) - Mappings:
- Namespace - Name - Mixin selector - official - a- Laos;a(Ljava/io/File;Ljava/net/URL;Ljava/util/Map;ILape;Ljava/net/Proxy;)Ljava/util/concurrent/CompletableFuture;- intermediary - method_15301- Lnet/minecraft/class_3521;method_15301(Ljava/io/File;Ljava/net/URL;Ljava/util/Map;ILnet/minecraft/class_3536;Ljava/net/Proxy;)Ljava/util/concurrent/CompletableFuture;- named - downloadResourcePack- Lnet/minecraft/client/util/NetworkUtils;downloadResourcePack(Ljava/io/File;Ljava/net/URL;Ljava/util/Map;ILnet/minecraft/util/ProgressListener;Ljava/net/Proxy;)Ljava/util/concurrent/CompletableFuture;
 
- 
findLocalPortpublic static int findLocalPort()- Mappings:
- Namespace - Name - Mixin selector - official - a- Laos;a()I- intermediary - method_15302- Lnet/minecraft/class_3521;method_15302()I- named - findLocalPort- Lnet/minecraft/client/util/NetworkUtils;findLocalPort()I
 
- 
isPortAvailablepublic static boolean isPortAvailable(int port) - Mappings:
- Namespace - Name - Mixin selector - official - a- Laos;a(I)Z- intermediary - method_46872- Lnet/minecraft/class_3521;method_46872(I)Z- named - isPortAvailable- Lnet/minecraft/client/util/NetworkUtils;isPortAvailable(I)Z
 
 
-