Package com.mojang.realmsclient.client
Class FileDownload
java.lang.Object
com.mojang.realmsclient.client.FileDownload
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) class
(package private) class
-
Field Summary
Modifier and TypeFieldDescription(package private) boolean
private Thread
(package private) boolean
(package private) boolean
(package private) boolean
private static final String[]
(package private) static final org.slf4j.Logger
private org.apache.http.client.methods.HttpGet
private final org.apache.http.client.config.RequestConfig
(package private) File
private File
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
long
contentLength
(String p_86990_) private static void
deletePlayerTag
(File p_86988_) void
download
(WorldDownload p_86983_, String p_86984_, RealmsDownloadLatestWorldScreen.DownloadStatus p_86985_, LevelStorageSource p_86986_) static String
findAvailableFolderName
(String p_87002_) boolean
isError()
boolean
boolean
(package private) void
untarGzipArchive
(String p_86992_, File p_86993_, LevelStorageSource p_86994_)
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
cancelled
volatile boolean cancelled -
finished
volatile boolean finished -
error
volatile boolean error -
extracting
volatile boolean extracting -
tempFile
-
resourcePackPath
-
request
@Nullable private volatile org.apache.http.client.methods.HttpGet request -
currentThread
-
requestConfig
private final org.apache.http.client.config.RequestConfig requestConfig -
INVALID_FILE_NAMES
-
-
Constructor Details
-
FileDownload
public FileDownload()
-
-
Method Details
-
contentLength
-
download
public void download(WorldDownload p_86983_, String p_86984_, RealmsDownloadLatestWorldScreen.DownloadStatus p_86985_, LevelStorageSource p_86986_) -
cancel
public void cancel() -
isFinished
public boolean isFinished() -
isError
public boolean isError() -
isExtracting
public boolean isExtracting() -
findAvailableFolderName
-
untarGzipArchive
void untarGzipArchive(String p_86992_, @Nullable File p_86993_, LevelStorageSource p_86994_) throws IOException - Throws:
IOException
-
deletePlayerTag
-