Package net.minecraft.client.resources
Class DownloadedPackSource
java.lang.Object
net.minecraft.client.resources.DownloadedPackSource
- All Implemented Interfaces:
RepositorySource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate CompletableFuture<?>private final ReentrantLockprivate static final org.slf4j.Loggerprivate static final intprivate static final intprivate static final Stringprivate static final Componentprivate Packprivate final Fileprivate static final Pattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanprivate voidprivate static voiddeleteQuietly(File p_251727_) downloadAndSelectResourcePack(URL p_249839_, String p_249218_, boolean p_251033_) voidsetServerPack(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:
loadPacksin 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_)
-