@Environment(value=CLIENT) public class DirectResourceIndex extends ResourceIndex
| Modifier and Type | Field and Description |
|---|---|
private File |
assetDir |
LOGGER| Constructor and Description |
|---|
DirectResourceIndex(File assetDir) |
| Modifier and Type | Method and Description |
|---|---|
File |
findFile(String path) |
Collection<Identifier> |
getFilesRecursively(String string,
String string2,
int int2,
Predicate<String> predicate) |
File |
getResource(Identifier identifier) |
private final File assetDir
public DirectResourceIndex(File assetDir)
public File getResource(Identifier identifier)
getResource in class ResourceIndexpublic File findFile(String path)
findFile in class ResourceIndexpublic Collection<Identifier> getFilesRecursively(String string, String string2, int int2, Predicate<String> predicate)
getFilesRecursively in class ResourceIndex