net.minecraft.client.resources

public class ClientPackSource

implements RepositorySource

fkj
net.minecraft.client.resources.ClientPackSource
net.minecraft.class_1066
net.minecraft.client.resource.ClientBuiltinResourcePackProvider
net.minecraft.src.C_4493_

Field summary

Modifier and TypeField
private static final PackMetadataSection
a
BUILT_IN
field_27772
DEFAULT_PACK_METADATA
f_174791_
private static final org.slf4j.Logger
b
LOGGER
field_5298
LOGGER
f_118543_
private static final Pattern
c
SHA1
field_5296
SHA1_PATTERN
f_118544_
private static final int
d
MAX_PACK_SIZE_BYTES
field_32958
MAX_FILE_SIZE
f_200482_
private static final int
e
MAX_KEPT_PACKS
field_32959
MAX_SAVED_PACKS
f_174793_
private static final String
f
VANILLA_ID
field_32960
VANILLA
f_174794_
private static final String
g
SERVER_ID
field_32961
SERVER
f_174795_
private static final String
h
PROGRAMMER_ART_ID
field_32962
PROGRAMER_ART_ID
f_174796_
private static final String
i
PROGRAMMER_ART_NAME
field_32963
PROGRAMMER_ART_NAME
f_174797_
private static final Component
j
APPLYING_PACK_TEXT
field_33633
APPLYING_PACK_TEXT
f_174798_
private final VanillaPackResources
k
vanillaPack
field_5293
pack
f_118545_
private final File
l
serverPackDir
field_5292
serverPacksRoot
f_118546_
private final ReentrantLock
m
downloadLock
field_5297
lock
f_118547_
private final AssetIndex
n
assetIndex
field_16263
index
f_118548_
private CompletableFuture<?>
o
currentDownload
field_5294
downloadTask
f_118549_
private Pack
p
serverPack
field_5295
serverContainer
f_118550_

Constructor summary

ModifierConstructor
public (File serverPacksRoot, AssetIndex index)

Method summary

Modifier and TypeMethod
public void
a(Consumer<ahw> arg0, ahw$a arg1)
loadPacks(Consumer<Pack> arg0, Pack$PackConstructor arg1)
method_14453(Consumer<class_3288> arg0, class_3288$class_5351 arg1)
register(Consumer<ResourcePackProfile> arg0, ResourcePackProfile$Factory arg1)
m_7686_(Consumer<C_58_> p_118585_, C_59_ arg1)
public VanillaPackResources
a()
getVanillaPack()
method_4633()
getPack()
m_118555_()
private static Map<String, String>
c()
getDownloadHeaders()
method_4636()
getDownloadHeaders()
m_118589_()
public CompletableFuture<?>
a(URL arg0, String arg1, boolean arg2)
downloadAndSelectResourcePack(URL arg0, String arg1, boolean arg2)
method_4640(URL arg0, String arg1, boolean arg2)
download(URL url, String packSha1, boolean closeAfterDownload)
m_235005_(URL p_235007_, String p_235008_, boolean arg2)
private static void
a(File arg0)
deleteQuietly(File arg0)
method_19437(File arg0)
delete(File file)
m_118564_(File p_118565_)
public CompletableFuture<Void>
b()
clearServerPack()
method_4642()
clear()
m_235009_()
private boolean
a(String arg0, File arg1)
checkHash(String arg0, File arg1)
method_4641(String arg0, File arg1)
verifyFile(String expectedSha1, File file)
m_118573_(String p_118575_, File arg1)
private void
d()
clearOldDownloads()
method_4643()
deleteOldServerPack()
m_118592_()
public CompletableFuture<Void>
a(drq$c arg0)
loadBundledResourcePack(LevelStorageSource$LevelStorageAccess arg0)
method_43339(class_32$class_5143 arg0)
loadServerPack(LevelStorage$Session session)
m_235003_(C_2786_ arg0)
public CompletableFuture<Void>
a(File arg0, ahz arg1)
setServerPack(File arg0, PackSource arg1)
method_4638(File arg0, class_5352 arg1)
loadServerPack(File packZip, ResourcePackSource packSource)
m_118566_(File p_118568_, C_63_ arg1)
private Pack
a(ahw$a arg0)
createProgrammerArtPack(Pack$PackConstructor arg0)
method_25454(class_3288$class_5351 arg0)
getProgrammerArtResourcePackProfile(ResourcePackProfile$Factory factory)
m_118556_(C_59_ arg0)
private static Pack
a(ahw$a arg0, Supplier<ahl> arg1)
createProgrammerArtPack(Pack$PackConstructor arg0, Supplier<PackResources> arg1)
method_25453(class_3288$class_5351 arg0, Supplier<class_3262> arg1)
getProgrammerArtResourcePackProfile(ResourcePackProfile$Factory factory, Supplier<ResourcePack> packSupplier)
m_118558_(C_59_ p_118559_, Supplier<C_50_> p_118560_)
private static FolderPackResources
b(File arg0)
createProgrammerArtDirPack(File arg0)
method_25455(File arg0)
getProgrammerArtResourcePackFromDirectory(File packDirectory)
m_118587_(File p_118588_)
private static PackResources
c(File arg0)
createProgrammerArtZipPack(File arg0)
method_16048(File arg0)
getProgrammerArtResourcePackFromZipFile(File zipFile)
m_118590_(File p_118591_)