net.minecraft.client.realms

public class FileDownload

com.mojang.realmsclient.client.FileDownload
net.minecraft.class_4333
net.minecraft.client.realms.FileDownload

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_19522
LOGGER
private volatile boolean
cancelled
field_19523
cancelled
private volatile boolean
finished
field_19524
finished
private volatile boolean
error
field_19525
error
private volatile boolean
extracting
field_19526
extracting
private volatile File
tempFile
field_20490
backupFile
private volatile File
resourcePackPath
field_19528
resourcePackPath
private volatile CompletableFuture<?>
pendingRequest
field_64188
future
private Thread
currentThread
field_19530
currentThread
private static final String[]
INVALID_FILE_NAMES
field_19532
INVALID_FILE_NAMES

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
private <T> T
joinCancellableRequest(CompletableFuture<T> pendingRequest)
method_76238(CompletableFuture<T> arg0)
submit(CompletableFuture<T> future)
private static HttpClient
createClient()
method_76240()
createClient()
private static HttpRequest$Builder
createRequest(String downloadLink)
method_76239(String arg0)
createRequestBuilder(String uri)
public static OptionalLong
contentLength(String downloadLink)
method_20955(String arg0)
contentLength(String uri)
public void
download(WorldDownload worldDownload, String worldName, RealmsDownloadLatestWorldScreen$DownloadStatus downloadStatus, LevelStorageSource levelStorageSource)
method_22100(class_4889 arg0, String arg1, class_4392$class_4393 arg2, class_32 arg3)
downloadWorld(WorldDownload download, String message, RealmsDownloadLatestWorldScreen$DownloadStatus status, LevelStorage storage)
private void
download(RealmsDownloadLatestWorldScreen$DownloadStatus downloadStatus, HttpClient client, String url, File target)
method_76236(class_4392$class_4393 arg0, HttpClient arg1, String arg2, File arg3)
download(RealmsDownloadLatestWorldScreen$DownloadStatus status, HttpClient client, String uri, File output)
public void
cancel()
method_20948()
cancel()
public boolean
isFinished()
method_20957()
isFinished()
public boolean
isError()
method_20961()
isError()
public boolean
isExtracting()
method_20964()
isExtracting()
public static String
findAvailableFolderName(String folder)
method_20960(String arg0)
findAvailableFolderName(String folder)
private void
untarGzipArchive(String name, File file, LevelStorageSource levelStorageSource)
method_20956(String arg0, File arg1, class_32 arg2)
untarGzipArchive(String name, File archive, LevelStorage storage)
private void
finishWorldDownload(String worldName, File tempFile, LevelStorageSource levelStorageSource, RealmsDownloadLatestWorldScreen$DownloadStatus downloadStatus)
method_76237(String arg0, File arg1, class_32 arg2, class_4392$class_4393 arg3)
extract(String name, File archive, LevelStorage storage, RealmsDownloadLatestWorldScreen$DownloadStatus status)
private void
finishResourcePackDownload(RealmsDownloadLatestWorldScreen$DownloadStatus downloadStatus, File tempFile, WorldDownload worldDownload)
method_76235(class_4392$class_4393 arg0, File arg1, class_4889 arg2)
validateAndCopy(RealmsDownloadLatestWorldScreen$DownloadStatus status, File file, WorldDownload download)
private void
lambda$download$0(RealmsDownloadLatestWorldScreen$DownloadStatus arg0, WorldDownload arg1, String arg2, LevelStorageSource arg3)
method_76234(class_4392$class_4393 arg0, class_4889 arg1, String arg2, class_32 arg3)
method_76234(RealmsDownloadLatestWorldScreen$DownloadStatus arg0, WorldDownload arg1, String arg2, LevelStorage arg3)