public class ResourcePackRepository
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ResourcePackRepository.Entry |
Modifier and Type | Field and Description |
---|---|
IResourcePack |
rprDefaultResourcePack |
MetadataSerializer |
rprMetadataSerializer |
Constructor and Description |
---|
ResourcePackRepository(java.io.File dirResourcepacksIn,
java.io.File dirServerResourcepacksIn,
IResourcePack rprDefaultResourcePackIn,
MetadataSerializer rprMetadataSerializerIn,
GameSettings settings) |
Modifier and Type | Method and Description |
---|---|
void |
clearResourcePack() |
com.google.common.util.concurrent.ListenableFuture<java.lang.Object> |
downloadResourcePack(java.lang.String url,
java.lang.String hash) |
java.io.File |
getDirResourcepacks() |
static java.util.Map<java.lang.String,java.lang.String> |
getDownloadHeaders() |
java.util.List<ResourcePackRepository.Entry> |
getRepositoryEntries() |
java.util.List<ResourcePackRepository.Entry> |
getRepositoryEntriesAll() |
ResourcePackRepository.Entry |
getResourcePackEntry() |
IResourcePack |
getResourcePackInstance() |
void |
setRepositories(java.util.List<ResourcePackRepository.Entry> repositories) |
com.google.common.util.concurrent.ListenableFuture<java.lang.Object> |
setResourcePackInstance(java.io.File resourceFile) |
void |
updateRepositoryEntriesAll() |
public final IResourcePack rprDefaultResourcePack
public final MetadataSerializer rprMetadataSerializer
public ResourcePackRepository(java.io.File dirResourcepacksIn, java.io.File dirServerResourcepacksIn, IResourcePack rprDefaultResourcePackIn, MetadataSerializer rprMetadataSerializerIn, GameSettings settings)
public static java.util.Map<java.lang.String,java.lang.String> getDownloadHeaders()
public void updateRepositoryEntriesAll()
@Nullable public ResourcePackRepository.Entry getResourcePackEntry()
public java.util.List<ResourcePackRepository.Entry> getRepositoryEntriesAll()
public java.util.List<ResourcePackRepository.Entry> getRepositoryEntries()
public void setRepositories(java.util.List<ResourcePackRepository.Entry> repositories)
public java.io.File getDirResourcepacks()
public com.google.common.util.concurrent.ListenableFuture<java.lang.Object> downloadResourcePack(java.lang.String url, java.lang.String hash)
public com.google.common.util.concurrent.ListenableFuture<java.lang.Object> setResourcePackInstance(java.io.File resourceFile)
@Nullable public IResourcePack getResourcePackInstance()
public void clearResourcePack()