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 aueintermediary net/minecraft/class_3521named net/minecraft/client/util/NetworkUtils
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic booleanisPortAvailable(int port) private static HashCodemethod_55492(HashFunction hashFunction, int int2, NetworkUtils.class_9034 class_9034, InputStream inputStream, Path path) private static Pathmethod_55493(Path path, HashCode hashCode) private static HashCodemethod_55494(Path path, HashFunction hashFunction) private static booleanmethod_55495(Path path, HashFunction hashFunction, HashCode hashCode) static Pathmethod_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 aLaue;a:Lorg/slf4j/Logger;intermediary field_15665Lnet/minecraft/class_3521;field_15665:Lorg/slf4j/Logger;named LOGGERLnet/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 aLaue;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_55496Lnet/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_55496Lnet/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 aLaue;a(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashCode;intermediary method_55494Lnet/minecraft/class_3521;method_55494(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashCode;named method_55494Lnet/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 aLaue;a(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/HashCode;)Zintermediary method_55495Lnet/minecraft/class_3521;method_55495(Ljava/nio/file/Path;Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/HashCode;)Znamed method_55495Lnet/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 aLaue;a(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)Ljava/nio/file/Path;intermediary method_55493Lnet/minecraft/class_3521;method_55493(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)Ljava/nio/file/Path;named method_55493Lnet/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 aLaue;a(Lcom/google/common/hash/HashFunction;ILaue$a;Ljava/io/InputStream;Ljava/nio/file/Path;)Lcom/google/common/hash/HashCode;intermediary method_55492Lnet/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_55492Lnet/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 aLaue;a()Iintermediary method_15302Lnet/minecraft/class_3521;method_15302()Inamed findLocalPortLnet/minecraft/client/util/NetworkUtils;findLocalPort()I
-
isPortAvailable
public static boolean isPortAvailable(int port) - Mappings:
Namespace Name Mixin selector official aLaue;a(I)Zintermediary method_46872Lnet/minecraft/class_3521;method_46872(I)Znamed isPortAvailableLnet/minecraft/client/util/NetworkUtils;isPortAvailable(I)Z
-