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
/publish
command, which is only available to integrated servers yet was retained by proguard. - Mappings:
Namespace Name official aue
intermediary net/minecraft/class_3521
named net/minecraft/client/util/NetworkUtils
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
static boolean
isPortAvailable
(int port) private static HashCode
method_55492
(HashFunction hashFunction, int int2, NetworkUtils.class_9034 class_9034, InputStream inputStream, Path path) private static Path
method_55493
(Path path, HashCode hashCode) private static HashCode
method_55494
(Path path, HashFunction hashFunction) private static boolean
method_55495
(Path path, HashFunction hashFunction, HashCode hashCode) static Path
method_55496
(Path path, URL uRL, Map<String, String> map, HashFunction hashFunction, @Nullable HashCode hashCode, int int2, Proxy proxy, NetworkUtils.class_9034 class_9034)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Laue;a: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;
-
-
Constructor Details
-
NetworkUtils
private NetworkUtils()
-
-
Method Details
-
method_55496
public static Path method_55496(Path path, URL uRL, Map<String, String> map, HashFunction hashFunction, @Nullable @Nullable HashCode hashCode, int int2, Proxy proxy, NetworkUtils.class_9034 class_9034) - Mappings:
Namespace Name Mixin selector official a
Laue;a(Ljava/nio/file/Path;Ljava/net/URL;Ljava/util/Map;Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/HashCode;ILjava/net/Proxy;Laue$a;)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;
named method_55496
Lnet/minecraft/client/util/NetworkUtils;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/client/util/NetworkUtils$class_9034;)Ljava/nio/file/Path;
-
method_55494
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Laue;a(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;
named method_55494
Lnet/minecraft/client/util/NetworkUtils;method_55494(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashCode;
-
method_55495
private static boolean method_55495(Path path, HashFunction hashFunction, HashCode hashCode) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Laue;a(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
named method_55495
Lnet/minecraft/client/util/NetworkUtils;method_55495(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/HashCode;)Z
-
method_55493
- Mappings:
Namespace Name Mixin selector official a
Laue;a(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;
named method_55493
Lnet/minecraft/client/util/NetworkUtils;method_55493(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)Ljava/nio/file/Path;
-
method_55492
private static HashCode method_55492(HashFunction hashFunction, int int2, NetworkUtils.class_9034 class_9034, InputStream inputStream, Path path) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Laue;a(Lcom/google/common/hash/HashFunction;ILaue$a;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;
named method_55492
Lnet/minecraft/client/util/NetworkUtils;method_55492(Lcom/google/common/hash/HashFunction;ILnet/minecraft/client/util/NetworkUtils$class_9034;Ljava/io/InputStream;Ljava/nio/file/Path;)Lcom/google/common/hash/HashCode;
-
findLocalPort
public static int findLocalPort()- Mappings:
Namespace Name Mixin selector official a
Laue;a()I
intermediary method_15302
Lnet/minecraft/class_3521;method_15302()I
named findLocalPort
Lnet/minecraft/client/util/NetworkUtils;findLocalPort()I
-
isPortAvailable
public static boolean isPortAvailable(int port) - Mappings:
Namespace Name Mixin selector official a
Laue;a(I)Z
intermediary method_46872
Lnet/minecraft/class_3521;method_46872(I)Z
named isPortAvailable
Lnet/minecraft/client/util/NetworkUtils;isPortAvailable(I)Z
-