@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, parseMetadata
private final ResourceIndex index
public DefaultClientResourcePack(ResourceIndex resourceIndex)
@Nullable protected InputStream findInputStream(ResourceType type, Identifier id)
findInputStream
in class DefaultResourcePack
public boolean contains(ResourceType type, Identifier id)
contains
in interface ResourcePack
contains
in class DefaultResourcePack
@Nullable protected InputStream getInputStream(String path)
getInputStream
in class DefaultResourcePack
public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
findResources
in interface ResourcePack
findResources
in class DefaultResourcePack