Package com.mojang.realmsclient.client
Class FileDownload
java.lang.Object
com.mojang.realmsclient.client.FileDownload
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private Thread
private boolean
private boolean
private boolean
private static final String[]
private static final org.apache.logging.log4j.Logger
private org.apache.http.client.methods.HttpGet
private final org.apache.http.client.config.RequestConfig
private File
private File
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
long
contentLength
(String p_224827_1_) private static void
deletePlayerTag
(File p_237689_0_) void
download
(WorldDownload p_237688_1_, String p_237688_2_, RealmsDownloadLatestWorldScreen.DownloadStatus p_237688_3_, SaveFormat p_237688_4_) static String
findAvailableFolderName
(String p_224828_0_) boolean
isError()
boolean
boolean
private void
untarGzipArchive
(String p_237690_1_, File p_237690_2_, SaveFormat p_237690_3_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
cancelled
private volatile boolean cancelled -
finished
private volatile boolean finished -
error
private volatile boolean error -
extracting
private volatile boolean extracting -
tempFile
-
resourcePackPath
-
request
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_237688_1_, String p_237688_2_, RealmsDownloadLatestWorldScreen.DownloadStatus p_237688_3_, SaveFormat p_237688_4_) -
cancel
public void cancel() -
isFinished
public boolean isFinished() -
isError
public boolean isError() -
isExtracting
public boolean isExtracting() -
findAvailableFolderName
-
untarGzipArchive
private void untarGzipArchive(String p_237690_1_, File p_237690_2_, SaveFormat p_237690_3_) throws IOException - Throws:
IOException
-
deletePlayerTag
-