public class ResourceIndex
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.Map<ResourceLocation,java.io.File> |
namespaceFiles |
private java.util.Map<java.lang.String,java.io.File> |
rootFiles |
Modifier | Constructor and Description |
---|---|
protected |
ResourceIndex() |
|
ResourceIndex(java.io.File assetsFolder,
java.lang.String indexName) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile(ResourceLocation location) |
java.io.File |
getFile(java.lang.String p_225638_1_) |
java.util.Collection<ResourceLocation> |
getFiles(java.lang.String p_225639_1_,
java.lang.String p_225639_2_,
int p_225639_3_,
java.util.function.Predicate<java.lang.String> p_225639_4_) |
protected static final org.apache.logging.log4j.Logger LOGGER
private final java.util.Map<java.lang.String,java.io.File> rootFiles
private final java.util.Map<ResourceLocation,java.io.File> namespaceFiles
protected ResourceIndex()
public ResourceIndex(java.io.File assetsFolder, java.lang.String indexName)
@Nullable public java.io.File getFile(ResourceLocation location)
@Nullable public java.io.File getFile(java.lang.String p_225638_1_)
public java.util.Collection<ResourceLocation> getFiles(java.lang.String p_225639_1_, java.lang.String p_225639_2_, int p_225639_3_, java.util.function.Predicate<java.lang.String> p_225639_4_)