Package net.minecraft.client.resources
Class ClientPackSource
java.lang.Object
net.minecraft.client.resources.ClientPackSource
- All Implemented Interfaces:
RepositorySource
-
Field Summary
Modifier and TypeFieldDescriptionprivate static Component
private AssetIndex
static PackMetadataSection
private CompletableFuture<?>
private ReentrantLock
private static org.apache.logging.log4j.Logger
private static int
private static int
private static String
private static String
private static String
private Pack
private File
private static Pattern
private static String
private VanillaPackResources
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
private void
void
private static FolderPackResources
createProgrammerArtDirPack(File p_118588_)
private Pack
createProgrammerArtPack(Pack.PackConstructor p_118557_)
private static Pack
createProgrammerArtPack(Pack.PackConstructor p_118559_, Supplier<PackResources> p_118560_)
private static PackResources
createProgrammerArtZipPack(File p_118591_)
private static void
deleteQuietly(File p_118565_)
downloadAndSelectResourcePack(String p_174814_, String p_174815_, boolean p_174816_)
void
loadPacks(Consumer<Pack> p_118584_, Pack.PackConstructor p_118585_)
setServerPack(File p_118567_, PackSource p_118568_)
-
Field Details
-
BUILT_IN
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SHA1
-
MAX_WEB_FILESIZE
private static final int MAX_WEB_FILESIZE- See Also:
- Constant Field Values
-
MAX_KEPT_PACKS
private static final int MAX_KEPT_PACKS- See Also:
- Constant Field Values
-
VANILLA_ID
- See Also:
- Constant Field Values
-
SERVER_ID
- See Also:
- Constant Field Values
-
PROGRAMMER_ART_ID
- See Also:
- Constant Field Values
-
PROGRAMMER_ART_NAME
- See Also:
- Constant Field Values
-
APPLYING_PACK_TEXT
-
vanillaPack
-
serverPackDir
-
downloadLock
-
assetIndex
-
currentDownload
-
serverPack
-
-
Constructor Details
-
ClientPackSource
-
-
Method Details
-
loadPacks
- Specified by:
loadPacks
in interfaceRepositorySource
-
getVanillaPack
-
getDownloadHeaders
-
downloadAndSelectResourcePack
public CompletableFuture<?> downloadAndSelectResourcePack(String p_174814_, String p_174815_, boolean p_174816_) -
deleteQuietly
-
clearServerPack
public void clearServerPack() -
checkHash
-
clearOldDownloads
private void clearOldDownloads() -
setServerPack
-
createProgrammerArtPack
-
createProgrammerArtPack
@Nullable private static Pack createProgrammerArtPack(Pack.PackConstructor p_118559_, Supplier<PackResources> p_118560_) -
createProgrammerArtDirPack
-
createProgrammerArtZipPack
-