public interface ResourcePack extends AutoCloseable
Modifier and Type | Method and 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) |
@Environment(value=CLIENT) InputStream openRoot(String fileName) throws IOException
IOException
InputStream open(ResourceType type, Identifier id) throws IOException
IOException
Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
boolean contains(ResourceType type, Identifier id)
Set<String> getNamespaces(ResourceType type)
@Nullable <T> T parseMetadata(ResourceMetadataReader<T> metaReader)
String getName()
void close()
close
in interface AutoCloseable