net.minecraft.client.resource.pack

public class ResourcePacks

bxh
net.minecraft.class_1657
net.minecraft.client.resource.pack.ResourcePacks
net.minecraft.client.resources.ResourcePackRepository

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
c
field_11262
LOGGER
LOGGER
private static final FileFilter
d
field_6617
FILE_FILTER
RESOURCE_PACK_FILTER
private static final Pattern
e
field_14991
SHA1
SHA1
private final File
f
field_6620
directory
dirResourcepacks
public final ResourcePack
a
field_6618
defaultPack
rprDefaultResourcePack
private final File
g
field_8109
serverPackDirectory
dirServerResourcepacks
public final ResourceMetadataSerializers
b
field_6619
metadataSerializers
rprMetadataSerializer
private ResourcePack
h
field_8110
serverPack
resourcePackInstance
private final ReentrantLock
i
field_11263
lock
lock
private com.google.common.util.concurrent.ListenableFuture<Object>
j
field_11264
serverPackFuture
downloadingPacks
private List<ResourcePacks$UnopenedPack>
k
field_6621
availablePacks
repositoryEntriesAll
private final List<ResourcePacks$UnopenedPack>
l
field_6622
selectedPacks
repositoryEntries

Constructor summary

ModifierConstructor
public (File dir, File serverPackDir, ResourcePack defaultPack, ResourceMetadataSerializers metadataSerializers, GameOptions options)

Method summary

Modifier and TypeMethod
public static Map<String, String>
a()
method_13464()
getDownloadHeaders()
getDownloadHeaders()
private void
j()
method_5908()
mkdirs()
fixDirResourcepacks()
private List<File>
k()
method_5909()
discoverAvailablePacks()
getResourcePackFiles()
public void
b()
method_5902()
reload()
updateRepositoryEntriesAll()
public ResourcePacks$UnopenedPack
c()
method_12499()
getServerPack()
getResourcePackEntry()
public List<ResourcePacks$UnopenedPack>
d()
method_5904()
getAvailablePacks()
getRepositoryEntriesAll()
public List<ResourcePacks$UnopenedPack>
e()
method_5905()
getSelectedPacks()
getRepositoryEntries()
public void
a(List<bxh$a> arg0)
method_7038(List<class_1657$class_1659> arg0)
setSelectedPacks(List<ResourcePacks$UnopenedPack> packs)
setRepositories(List<ResourcePackRepository$Entry> repositories)
public File
f()
method_5907()
getDirectory()
getDirResourcepacks()
public com.google.common.util.concurrent.ListenableFuture<Object>
a(String arg0, String arg1)
method_10367(String arg0, String arg1)
downloadServerPack(String url, String hash)
downloadResourcePack(String url, String hash)
private boolean
a(String arg0, File arg1)
method_13466(String arg0, File arg1)
checkHash(String hash, File file)
checkHash(String arg0, File arg1)
private boolean
b(File arg0)
method_13467(File arg0)
loadServerPack(File file)
validatePack(File arg0)
private void
l()
method_10368()
clearOldDownloads()
deleteOldServerResourcesPacks()
public com.google.common.util.concurrent.ListenableFuture<Object>
a(File arg0)
method_10366(File arg0)
applyServerPack(File file)
setResourcePackInstance(File resourceFile)
public ResourcePack
g()
method_7039()
getServerResourcePack()
getResourcePackInstance()
public void
h()
method_7040()
removeServerPack()
clearResourcePack()