Class NetworkUtils

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

public class NetworkUtils extends Object
A few networking utilities.
Mappings:
Namespace Name
named net/minecraft/util/NetworkUtils
intermediary net/minecraft/class_3521
official azv
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/util/NetworkUtils;LOGGER:Lorg/slf4j/Logger;
      intermediary field_15665 Lnet/minecraft/class_3521;field_15665:Lorg/slf4j/Logger;
      official a Lazv;a:Lorg/slf4j/Logger;
  • Constructor Details

    • NetworkUtils

      private NetworkUtils()
  • Method Details

    • download

      public static Path download(Path path, URL url, Map<String,String> headers, HashFunction hashFunction, @Nullable @Nullable HashCode hashCode, int maxBytes, Proxy proxy, NetworkUtils.DownloadListener listener)
      Mappings:
      Namespace Name Mixin selector
      named download Lnet/minecraft/util/NetworkUtils;download(Ljava/nio/file/Path;Ljava/net/URL;Ljava/util/Map;Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/HashCode;ILjava/net/Proxy;Lnet/minecraft/util/NetworkUtils$DownloadListener;)Ljava/nio/file/Path;
      intermediary method_55496 Lnet/minecraft/class_3521;method_55496(Ljava/nio/file/Path;Ljava/net/URL;Ljava/util/Map;Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/HashCode;ILjava/net/Proxy;Lnet/minecraft/class_3521$class_9034;)Ljava/nio/file/Path;
      official a Lazv;a(Ljava/nio/file/Path;Ljava/net/URL;Ljava/util/Map;Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/HashCode;ILjava/net/Proxy;Lazv$a;)Ljava/nio/file/Path;
    • updateModificationTime

      private static void updateModificationTime(Path path)
      Mappings:
      Namespace Name Mixin selector
      named updateModificationTime Lnet/minecraft/util/NetworkUtils;updateModificationTime(Ljava/nio/file/Path;)V
      intermediary method_55603 Lnet/minecraft/class_3521;method_55603(Ljava/nio/file/Path;)V
      official a Lazv;a(Ljava/nio/file/Path;)V
    • hash

      private static HashCode hash(Path path, HashFunction hashFunction) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named hash Lnet/minecraft/util/NetworkUtils;hash(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashCode;
      intermediary method_55494 Lnet/minecraft/class_3521;method_55494(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashCode;
      official a Lazv;a(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashCode;
    • validateHash

      private static boolean validateHash(Path path, HashFunction hashFunction, HashCode hashCode) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named validateHash Lnet/minecraft/util/NetworkUtils;validateHash(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/HashCode;)Z
      intermediary method_55495 Lnet/minecraft/class_3521;method_55495(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/HashCode;)Z
      official a Lazv;a(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/HashCode;)Z
    • resolve

      private static Path resolve(Path path, HashCode hashCode)
      Mappings:
      Namespace Name Mixin selector
      named resolve Lnet/minecraft/util/NetworkUtils;resolve(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)Ljava/nio/file/Path;
      intermediary method_55493 Lnet/minecraft/class_3521;method_55493(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)Ljava/nio/file/Path;
      official a Lazv;a(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)Ljava/nio/file/Path;
    • write

      private static HashCode write(HashFunction hashFunction, int maxBytes, NetworkUtils.DownloadListener listener, InputStream stream, Path path) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/util/NetworkUtils;write(Lcom/google/common/hash/HashFunction;ILnet/minecraft/util/NetworkUtils$DownloadListener;Ljava/io/InputStream;Ljava/nio/file/Path;)Lcom/google/common/hash/HashCode;
      intermediary method_55492 Lnet/minecraft/class_3521;method_55492(Lcom/google/common/hash/HashFunction;ILnet/minecraft/class_3521$class_9034;Ljava/io/InputStream;Ljava/nio/file/Path;)Lcom/google/common/hash/HashCode;
      official a Lazv;a(Lcom/google/common/hash/HashFunction;ILazv$a;Ljava/io/InputStream;Ljava/nio/file/Path;)Lcom/google/common/hash/HashCode;
    • findLocalPort

      public static int findLocalPort()
      Mappings:
      Namespace Name Mixin selector
      named findLocalPort Lnet/minecraft/util/NetworkUtils;findLocalPort()I
      intermediary method_15302 Lnet/minecraft/class_3521;method_15302()I
      official a Lazv;a()I
    • isPortAvailable

      public static boolean isPortAvailable(int port)
      Mappings:
      Namespace Name Mixin selector
      named isPortAvailable Lnet/minecraft/util/NetworkUtils;isPortAvailable(I)Z
      intermediary method_46872 Lnet/minecraft/class_3521;method_46872(I)Z
      official a Lazv;a(I)Z