public class DelegatingResourcePack extends ResourcePack
file| Constructor and Description |
|---|
DelegatingResourcePack(java.lang.String id,
java.lang.String name,
PackMetadataSection packInfo) |
DelegatingResourcePack(java.lang.String id,
java.lang.String name,
PackMetadataSection packInfo,
java.util.List<DelegatableResourcePack> packs) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDelegate(DelegatableResourcePack pack) |
void |
close() |
java.util.Collection<ResourceLocation> |
getAllResourceLocations(ResourcePackType type,
java.lang.String pathIn,
int maxDepth,
java.util.function.Predicate<java.lang.String> filter) |
protected java.io.InputStream |
getInputStream(java.lang.String resourcePath) |
<T> T |
getMetadata(IMetadataSectionSerializer<T> deserializer) |
java.lang.String |
getName() |
java.util.Set<java.lang.String> |
getResourceNamespaces(ResourcePackType type) |
protected boolean |
resourceExists(java.lang.String resourcePath) |
getRelativeString, getResourceMetadata, getResourceStream, getRootResourceStream, onIgnoreNonLowercaseNamespace, resourceExistsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisHiddenpublic DelegatingResourcePack(java.lang.String id,
java.lang.String name,
PackMetadataSection packInfo)
public DelegatingResourcePack(java.lang.String id,
java.lang.String name,
PackMetadataSection packInfo,
java.util.List<DelegatableResourcePack> packs)
public void addDelegate(DelegatableResourcePack pack)
public java.lang.String getName()
getName in interface IResourcePackgetName in class ResourcePackpublic <T> T getMetadata(IMetadataSectionSerializer<T> deserializer) throws java.io.IOException
getMetadata in interface IResourcePackgetMetadata in class ResourcePackjava.io.IOExceptionpublic java.util.Collection<ResourceLocation> getAllResourceLocations(ResourcePackType type, java.lang.String pathIn, int maxDepth, java.util.function.Predicate<java.lang.String> filter)
public java.util.Set<java.lang.String> getResourceNamespaces(ResourcePackType type)
public void close()
throws java.io.IOException
java.io.IOExceptionprotected java.io.InputStream getInputStream(java.lang.String resourcePath)
throws java.io.IOException
getInputStream in class ResourcePackjava.io.IOExceptionprotected boolean resourceExists(java.lang.String resourcePath)
resourceExists in class ResourcePack