com.mojang.realmsclient.client

public class FileDownload

fyo
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
a
LOGGER
field_19522
LOGGER
private volatile boolean
b
cancelled
field_19523
cancelled
private volatile boolean
c
finished
field_19524
finished
private volatile boolean
d
error
field_19525
error
private volatile boolean
e
extracting
field_19526
extracting
private volatile File
f
tempFile
field_20490
backupFile
private volatile File
g
resourcePackPath
field_19528
resourcePackPath
private volatile CompletableFuture<?>
h
pendingRequest
field_64188
future
private Thread
i
currentThread
field_19530
currentThread
private static final String[]
j
INVALID_FILE_NAMES
field_19532
INVALID_FILE_NAMES

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
private <T> T
a(CompletableFuture<T> arg0)
joinCancellableRequest(CompletableFuture<T> arg0)
method_76238(CompletableFuture<T> arg0)
submit(CompletableFuture<T> future)
private static HttpClient
e()
createClient()
method_76240()
createClient()
private static HttpRequest$Builder
c(String arg0)
createRequest(String arg0)
method_76239(String arg0)
createRequestBuilder(String uri)
public static OptionalLong
a(String arg0)
contentLength(String arg0)
method_20955(String arg0)
contentLength(String uri)
public void
a(gaq arg0, String arg1, gbj$a arg2, fma arg3)
download(WorldDownload arg0, String arg1, RealmsDownloadLatestWorldScreen$DownloadStatus arg2, LevelStorageSource arg3)
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
a(gbj$a arg0, HttpClient arg1, String arg2, File arg3)
download(RealmsDownloadLatestWorldScreen$DownloadStatus arg0, HttpClient arg1, String arg2, File arg3)
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
a()
cancel()
method_20948()
cancel()
public boolean
b()
isFinished()
method_20957()
isFinished()
public boolean
c()
isError()
method_20961()
isError()
public boolean
d()
isExtracting()
method_20964()
isExtracting()
public static String
b(String arg0)
findAvailableFolderName(String arg0)
method_20960(String arg0)
findAvailableFolderName(String folder)
private void
a(String arg0, File arg1, fma arg2)
untarGzipArchive(String arg0, File arg1, LevelStorageSource arg2)
method_20956(String arg0, File arg1, class_32 arg2)
untarGzipArchive(String name, File archive, LevelStorage storage)
private void
a(String arg0, File arg1, fma arg2, gbj$a arg3)
finishWorldDownload(String arg0, File arg1, LevelStorageSource arg2, RealmsDownloadLatestWorldScreen$DownloadStatus arg3)
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
a(gbj$a arg0, File arg1, gaq arg2)
finishResourcePackDownload(RealmsDownloadLatestWorldScreen$DownloadStatus arg0, File arg1, WorldDownload arg2)
method_76235(class_4392$class_4393 arg0, File arg1, class_4889 arg2)
validateAndCopy(RealmsDownloadLatestWorldScreen$DownloadStatus status, File file, WorldDownload download)