Class NetworkUtils

java.lang.Object
net.minecraft.client.util.NetworkUtils

public class NetworkUtils extends Object
A few client-side networking utilities.
Implementation Note:
This is not marked as client-only because it's used by the /publish command, which is only available to integrated servers yet was retained by proguard.
Mappings:
Namespace Name
official air
intermediary net/minecraft/class_3521
named net/minecraft/client/util/NetworkUtils
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lair;b:Lorg/apache/logging/log4j/Logger;
      intermediary field_15665 Lnet/minecraft/class_3521;field_15665:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/util/NetworkUtils;LOGGER:Lorg/apache/logging/log4j/Logger;
    • EXECUTOR

      public static final ListeningExecutorService EXECUTOR
      Mappings:
      Namespace Name Mixin selector
      official a Lair;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

    • NetworkUtils

      private NetworkUtils()
  • Method Details

    • makeQueryString

      public static String makeQueryString(Map<String,Object> query)
      Mappings:
      Namespace Name Mixin selector
      official a Lair;a(Ljava/util/Map;)Ljava/lang/String;
      intermediary method_34938 Lnet/minecraft/class_3521;method_34938(Ljava/util/Map;)Ljava/lang/String;
      named makeQueryString Lnet/minecraft/client/util/NetworkUtils;makeQueryString(Ljava/util/Map;)Ljava/lang/String;
    • post

      public static String post(URL url, Map<String,Object> query, boolean ignoreError, @Nullable @Nullable Proxy proxy)
      Mappings:
      Namespace Name Mixin selector
      official a Lair;a(Ljava/net/URL;Ljava/util/Map;ZLjava/net/Proxy;)Ljava/lang/String;
      intermediary method_34937 Lnet/minecraft/class_3521;method_34937(Ljava/net/URL;Ljava/util/Map;ZLjava/net/Proxy;)Ljava/lang/String;
      named post Lnet/minecraft/client/util/NetworkUtils;post(Ljava/net/URL;Ljava/util/Map;ZLjava/net/Proxy;)Ljava/lang/String;
    • post

      private static String post(URL url, String content, boolean ignoreError, @Nullable @Nullable Proxy proxy)
      Mappings:
      Namespace Name Mixin selector
      official a Lair;a(Ljava/net/URL;Ljava/lang/String;ZLjava/net/Proxy;)Ljava/lang/String;
      intermediary method_34936 Lnet/minecraft/class_3521;method_34936(Ljava/net/URL;Ljava/lang/String;ZLjava/net/Proxy;)Ljava/lang/String;
      named post Lnet/minecraft/client/util/NetworkUtils;post(Ljava/net/URL;Ljava/lang/String;ZLjava/net/Proxy;)Ljava/lang/String;
    • downloadResourcePack

      public static CompletableFuture<?> downloadResourcePack(File file, String url, Map<String,String> headers, int maxFileSize, @Nullable @Nullable ProgressListener progressListener, Proxy proxy)
      Mappings:
      Namespace Name Mixin selector
      official a Lair;a(Ljava/io/File;Ljava/lang/String;Ljava/util/Map;ILajb;Ljava/net/Proxy;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_15301 Lnet/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 downloadResourcePack Lnet/minecraft/client/util/NetworkUtils;downloadResourcePack(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 a Lair;a()I
      intermediary method_15302 Lnet/minecraft/class_3521;method_15302()I
      named findLocalPort Lnet/minecraft/client/util/NetworkUtils;findLocalPort()I