net.minecraft.client.resource.pack

public class ResourcePacks

bnm
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
resourcePackFilter
private final File
e
field_6620
directory
dirResourcepacks
public final ResourcePack
a
field_6618
defaultPack
rprDefaultResourcePack
private final File
f
field_8109
serverPackDirectory
dirServerResourcepacks
public final ResourceMetadataSerializers
b
field_6619
metadataSerializers
rprMetadataSerializer
private ResourcePack
g
field_8110
serverPack
resourcePackInstance
private final ReentrantLock
h
field_11263
lock
lock
private com.google.common.util.concurrent.ListenableFuture<Object>
i
field_11264
serverPackFuture
downloadingPacks
private List<ResourcePacks$UnopenedPack>
j
field_6621
availablePacks
repositoryEntriesAll
private List<ResourcePacks$UnopenedPack>
k
field_6622
selectedPacks
repositoryEntries

Constructor summary

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

Method summary

Modifier and TypeMethod
private void
g()
method_5908()
mkdirs()
fixDirResourcepacks()
private List<File>
h()
method_5909()
discoverAvailablePacks()
getResourcePackFiles()
public void
a()
method_5902()
reload()
updateRepositoryEntriesAll()
public List<ResourcePacks$UnopenedPack>
b()
method_5904()
getAvailablePacks()
getRepositoryEntriesAll()
public List<ResourcePacks$UnopenedPack>
c()
method_5905()
getSelectedPacks()
getRepositoryEntries()
public void
a(List<bnm$a> arg0)
method_7038(List<class_1657$class_1659> arg0)
setSelectedPacks(List<ResourcePacks$UnopenedPack> packs)
setRepositories(List<ResourcePackRepository$Entry> repositories)
public File
d()
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 void
i()
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
e()
method_7039()
getServerResourcePack()
getResourcePackInstance()
public void
f()
method_7040()
removeServerPack()
clearResourcePack()