Package net.minecraft.util
Class NetworkUtils
java.lang.Object
net.minecraft.util.NetworkUtils
A few networking utilities.
- Mappings:
- Namespace - Name - named - net/minecraft/util/NetworkUtils- intermediary - net/minecraft/class_3521- official - ayq
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Pathdownload(Path path, URL url, Map<String, String> headers, HashFunction hashFunction, @Nullable HashCode hashCode, int maxBytes, Proxy proxy, NetworkUtils.DownloadListener listener) static intprivate static HashCodehash(Path path, HashFunction hashFunction) static booleanisPortAvailable(int port) private static Pathprivate static voidupdateModificationTime(Path path) private static booleanvalidateHash(Path path, HashFunction hashFunction, HashCode hashCode) private static HashCodewrite(HashFunction hashFunction, int maxBytes, NetworkUtils.DownloadListener listener, InputStream stream, Path path) 
- 
Field Details- 
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- Layq;a:Lorg/slf4j/Logger;
 
 
- 
- 
Constructor Details- 
NetworkUtilsprivate NetworkUtils()
 
- 
- 
Method Details- 
downloadpublic 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- Layq;a(Ljava/nio/file/Path;Ljava/net/URL;Ljava/util/Map;Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/HashCode;ILjava/net/Proxy;Layq$a;)Ljava/nio/file/Path;
 
- 
updateModificationTime- 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- Layq;a(Ljava/nio/file/Path;)V
 
- 
hash- 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- Layq;a(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashCode;
 
- 
validateHashprivate 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- Layq;a(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/HashCode;)Z
 
- 
resolve- 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- Layq;a(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)Ljava/nio/file/Path;
 
- 
writeprivate 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- Layq;a(Lcom/google/common/hash/HashFunction;ILayq$a;Ljava/io/InputStream;Ljava/nio/file/Path;)Lcom/google/common/hash/HashCode;
 
- 
findLocalPortpublic 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- Layq;a()I
 
- 
isPortAvailablepublic 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- Layq;a(I)Z
 
 
-