public class ModFileResourcePack extends DelegatableResourcePack
| Modifier and Type | Field and Description | 
|---|---|
private ModFile | 
modFile  | 
private ResourcePackInfo | 
packInfo  | 
file| Constructor and Description | 
|---|
ModFileResourcePack(ModFile modFile)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()  | 
java.util.Collection<ResourceLocation> | 
getAllResourceLocations(ResourcePackType type,
                       java.lang.String resourceNamespace,
                       java.lang.String pathIn,
                       int maxDepth,
                       java.util.function.Predicate<java.lang.String> filter)  | 
java.io.InputStream | 
getInputStream(java.lang.String name)  | 
ModFile | 
getModFile()  | 
java.lang.String | 
getName()  | 
(package private) <T extends ResourcePackInfo> | 
getPackInfo()  | 
java.util.Set<java.lang.String> | 
getResourceNamespaces(ResourcePackType type)  | 
java.io.InputStream | 
getResourceStream(ResourcePackType type,
                 ResourceLocation location)  | 
boolean | 
resourceExists(ResourcePackType type,
              ResourceLocation location)  | 
boolean | 
resourceExists(java.lang.String name)  | 
(package private) <T extends ResourcePackInfo> | 
setPackInfo(T packInfo)  | 
getMetadata, getRelativeString, getResourceMetadata, getRootResourceStream, onIgnoreNonLowercaseNamespaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisHiddenprivate final ModFile modFile
private ResourcePackInfo packInfo
public ModFileResourcePack(ModFile modFile)
public ModFile getModFile()
public java.lang.String getName()
getName in interface IResourcePackgetName in class ResourcePackpublic java.io.InputStream getInputStream(java.lang.String name)
                                   throws java.io.IOException
getInputStream in class DelegatableResourcePackjava.io.IOExceptionpublic boolean resourceExists(java.lang.String name)
resourceExists in class DelegatableResourcePackpublic java.util.Collection<ResourceLocation> getAllResourceLocations(ResourcePackType type, java.lang.String resourceNamespace, 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 java.io.InputStream getResourceStream(ResourcePackType type, ResourceLocation location) throws java.io.IOException
getResourceStream in interface IResourcePackgetResourceStream in class ResourcePackjava.io.IOExceptionpublic boolean resourceExists(ResourcePackType type, ResourceLocation location)
resourceExists in interface IResourcePackresourceExists in class ResourcePackpublic void close()
           throws java.io.IOException
java.io.IOException<T extends ResourcePackInfo> void setPackInfo(T packInfo)
<T extends ResourcePackInfo> T getPackInfo()