Package net.minecraft.client.resources
Class DownloadingPackFinder
java.lang.Object
net.minecraft.client.resources.DownloadingPackFinder
- All Implemented Interfaces:
IPackFinder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceIndexprivate CompletableFuture<?>private final ReentrantLockprivate static final org.apache.logging.log4j.Loggerprivate ResourcePackInfoprivate final Fileprivate static final Patternprivate final VanillaPack -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanprivate voidvoidprivate static FolderPackcreateProgrammerArtDirPack(File p_239459_0_) private ResourcePackInfocreateProgrammerArtPack(ResourcePackInfo.IFactory p_239453_1_) private static ResourcePackInfocreateProgrammerArtPack(ResourcePackInfo.IFactory p_239454_0_, Supplier<IResourcePack> p_239454_1_) private static IResourcePackcreateProgrammerArtZipPack(File p_239460_0_) private static voiddeleteQuietly(File p_217811_0_) downloadAndSelectResourcePack(String p_217818_1_, String p_217818_2_) voidloadPacks(Consumer<ResourcePackInfo> p_230230_1_, ResourcePackInfo.IFactory p_230230_2_) setServerPack(File p_217816_1_, IPackNameDecorator p_217816_2_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SHA1
-
vanillaPack
-
serverPackDir
-
downloadLock
-
assetIndex
-
currentDownload
-
serverPack
-
-
Constructor Details
-
DownloadingPackFinder
-
-
Method Details
-
loadPacks
public void loadPacks(Consumer<ResourcePackInfo> p_230230_1_, ResourcePackInfo.IFactory p_230230_2_) - Specified by:
loadPacksin interfaceIPackFinder
-
getVanillaPack
-
getDownloadHeaders
-
downloadAndSelectResourcePack
-
deleteQuietly
-
clearServerPack
public void clearServerPack() -
checkHash
-
clearOldDownloads
private void clearOldDownloads() -
setServerPack
-
createProgrammerArtPack
-
createProgrammerArtPack
@Nullable private static ResourcePackInfo createProgrammerArtPack(ResourcePackInfo.IFactory p_239454_0_, Supplier<IResourcePack> p_239454_1_) -
createProgrammerArtDirPack
-
createProgrammerArtZipPack
-