public interface ResourceManager
Modifier and Type | Interface and Description |
---|---|
static class |
ResourceManager.Empty |
Modifier and Type | Method and Description |
---|---|
boolean |
containsResource(Identifier id) |
Collection<Identifier> |
findResources(String resourceType,
Predicate<String> pathPredicate) |
Set<String> |
getAllNamespaces() |
List<Resource> |
getAllResources(Identifier id) |
Resource |
getResource(Identifier id) |
Stream<ResourcePack> |
streamResourcePacks() |
Resource getResource(Identifier id) throws IOException
IOException
@Environment(value=CLIENT) boolean containsResource(Identifier id)
List<Resource> getAllResources(Identifier id)
Collection<Identifier> findResources(String resourceType, Predicate<String> pathPredicate)
@Environment(value=CLIENT) Stream<ResourcePack> streamResourcePacks()