net.minecraft.util

public class NetworkUtils

net.minecraft.util.HttpUtil
net.minecraft.class_3521
net.minecraft.util.NetworkUtils

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_15665
LOGGER

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static Path
downloadFile(Path targetDir, URL url, Map<String, String> headers, com.google.common.hash.HashFunction hashFunction, com.google.common.hash.HashCode requestedHash, int maxSize, Proxy proxy, HttpUtil$DownloadProgressListener listener)
method_55496(Path arg0, URL arg1, Map<String, String> arg2, com.google.common.hash.HashFunction arg3, com.google.common.hash.HashCode arg4, int arg5, Proxy arg6, class_3521$class_9034 arg7)
download(Path path, URL url, Map<String, String> headers, com.google.common.hash.HashFunction hashFunction, com.google.common.hash.HashCode hashCode, int maxBytes, Proxy proxy, NetworkUtils$DownloadListener listener)
private static void
updateModificationTime(Path targetFile)
method_55603(Path arg0)
updateModificationTime(Path path)
private static com.google.common.hash.HashCode
hashFile(Path file, com.google.common.hash.HashFunction hashFunction)
method_55494(Path arg0, com.google.common.hash.HashFunction arg1)
hash(Path path, com.google.common.hash.HashFunction hashFunction)
private static boolean
checkExistingFile(Path file, com.google.common.hash.HashFunction hashFunction, com.google.common.hash.HashCode expectedHash)
method_55495(Path arg0, com.google.common.hash.HashFunction arg1, com.google.common.hash.HashCode arg2)
validateHash(Path path, com.google.common.hash.HashFunction hashFunction, com.google.common.hash.HashCode hashCode)
private static Path
cachedFilePath(Path targetDir, com.google.common.hash.HashCode requestedHash)
method_55493(Path arg0, com.google.common.hash.HashCode arg1)
resolve(Path path, com.google.common.hash.HashCode hashCode)
private static com.google.common.hash.HashCode
downloadAndHash(com.google.common.hash.HashFunction hashFunction, int maxSize, HttpUtil$DownloadProgressListener listener, InputStream input, Path downloadFile)
method_55492(com.google.common.hash.HashFunction arg0, int arg1, class_3521$class_9034 arg2, InputStream arg3, Path arg4)
write(com.google.common.hash.HashFunction hashFunction, int maxBytes, NetworkUtils$DownloadListener listener, InputStream stream, Path path)
public static int
getAvailablePort()
method_15302()
findLocalPort()
public static boolean
isPortAvailable(int port)
method_46872(int arg0)
isPortAvailable(int port)