Package net.minecraft.client.resources
Class DownloadedPackSource
java.lang.Object
net.minecraft.client.resources.DownloadedPackSource
- All Implemented Interfaces:
RepositorySource
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Component
private CompletableFuture<?>
private final ReentrantLock
private static final org.slf4j.Logger
private static final int
private static final int
private static final String
private static final Component
private Pack
private final File
private static final Pattern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
private void
private static void
deleteQuietly
(File p_251727_) downloadAndSelectResourcePack
(URL p_249839_, String p_249218_, boolean p_251033_) void
setServerPack
(File p_249885_, PackSource p_251105_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SHA1
-
MAX_PACK_SIZE_BYTES
private static final int MAX_PACK_SIZE_BYTES- See Also:
-
MAX_KEPT_PACKS
private static final int MAX_KEPT_PACKS- See Also:
-
SERVER_ID
- See Also:
-
SERVER_NAME
-
APPLYING_PACK_TEXT
-
serverPackDir
-
downloadLock
-
currentDownload
-
serverPack
-
-
Constructor Details
-
DownloadedPackSource
-
-
Method Details
-
loadPacks
- Specified by:
loadPacks
in interfaceRepositorySource
-
getDownloadHeaders
-
downloadAndSelectResourcePack
public CompletableFuture<?> downloadAndSelectResourcePack(URL p_249839_, String p_249218_, boolean p_251033_) -
deleteQuietly
-
clearServerPack
-
checkHash
-
clearOldDownloads
private void clearOldDownloads() -
setServerPack
-
loadBundledResourcePack
public CompletableFuture<Void> loadBundledResourcePack(LevelStorageSource.LevelStorageAccess p_248756_)
-