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 void
close()
boolean
contains(ResourceType type, Identifier id)
Collection<Identifier>
findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
String
getName()
Set<String>
getNamespaces(ResourceType type)
InputStream
open(ResourceType type, Identifier id)
InputStream
openRoot(String fileName)
<T> T
parseMetadata(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:
close
in interfaceAutoCloseable
-