Class HttpUtil

java.lang.Object
net.minecraft.util.HttpUtil

public class HttpUtil extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
  • Constructor Details

    • HttpUtil

      private HttpUtil()
  • Method Details

    • downloadFile

      public static Path downloadFile(Path p_312337_, URL p_309490_, Map<String,String> p_311545_, com.google.common.hash.HashFunction p_312368_, @Nullable com.google.common.hash.HashCode p_309569_, int p_312993_, Proxy p_311636_, HttpUtil.DownloadProgressListener p_310347_)
    • updateModificationTime

      private static void updateModificationTime(Path p_311353_)
    • hashFile

      private static com.google.common.hash.HashCode hashFile(Path p_310985_, com.google.common.hash.HashFunction p_312320_) throws IOException
      Throws:
      IOException
    • checkExistingFile

      private static boolean checkExistingFile(Path p_309713_, com.google.common.hash.HashFunction p_311423_, com.google.common.hash.HashCode p_312149_) throws IOException
      Throws:
      IOException
    • cachedFilePath

      private static Path cachedFilePath(Path p_310769_, com.google.common.hash.HashCode p_311855_)
    • downloadAndHash

      private static com.google.common.hash.HashCode downloadAndHash(com.google.common.hash.HashFunction p_312168_, int p_311506_, HttpUtil.DownloadProgressListener p_311732_, InputStream p_312120_, Path p_310124_) throws IOException
      Throws:
      IOException
    • getAvailablePort

      public static int getAvailablePort()
    • isPortAvailable

      public static boolean isPortAvailable(int p_259872_)