Package net.minecraft.resource
Interface ResourcePack
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractFileResourcePack,DefaultClientResourcePack,DefaultResourcePack,DirectoryResourcePack,Format3ResourcePack,Format4ResourcePack,ZipResourcePack
public interface ResourcePack extends AutoCloseable
-
Method Summary
Modifier and Type Method Description voidclose()booleancontains(ResourceType type, Identifier id)Collection<Identifier>findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)StringgetName()Set<String>getNamespaces(ResourceType type)InputStreamopen(ResourceType type, Identifier id)InputStreamopenRoot(String fileName)<T> TparseMetadata(ResourceMetadataReader<T> metaReader)
-
Method Details
-
openRoot
- Throws:
IOException
-
open
- Throws:
IOException
-
findResources
Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter) -
contains
-
getNamespaces
-
parseMetadata
-
getName
String getName() -
close
void close()- Specified by:
closein interfaceAutoCloseable
-