@Environment(value=CLIENT) public class DefaultClientResourcePack extends DefaultResourcePack
| Modifier and Type | Field and Description |
|---|---|
private ResourceIndex |
index |
namespaces, resourceClass, resourcePath| Constructor and Description |
|---|
DefaultClientResourcePack(ResourceIndex resourceIndex) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(ResourceType type,
Identifier id) |
protected InputStream |
findInputStream(ResourceType type,
Identifier id) |
Collection<Identifier> |
findResources(ResourceType type,
String namespace,
String prefix,
int maxDepth,
Predicate<String> pathFilter) |
protected InputStream |
getInputStream(String path) |
close, getName, getNamespaces, open, openRoot, parseMetadataprivate final ResourceIndex index
public DefaultClientResourcePack(ResourceIndex resourceIndex)
@Nullable protected InputStream findInputStream(ResourceType type, Identifier id)
findInputStream in class DefaultResourcePackpublic boolean contains(ResourceType type, Identifier id)
contains in interface ResourcePackcontains in class DefaultResourcePack@Nullable protected InputStream getInputStream(String path)
getInputStream in class DefaultResourcePackpublic Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
findResources in interface ResourcePackfindResources in class DefaultResourcePack