private class ModelProvider.ExistingFileHelperIncludingGenerated extends ExistingFileHelper
| Modifier and Type | Field and Description |
|---|---|
private ExistingFileHelper |
delegate |
| Constructor and Description |
|---|
ExistingFileHelperIncludingGenerated(ExistingFileHelper delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(ResourceLocation loc,
ResourcePackType type,
java.lang.String pathSuffix,
java.lang.String pathPrefix)
Check if a given resource exists in the known resource packs.
|
getResource, isEnabledprivate final ExistingFileHelper delegate
public ExistingFileHelperIncludingGenerated(ExistingFileHelper delegate)
public boolean exists(ResourceLocation loc, ResourcePackType type, java.lang.String pathSuffix, java.lang.String pathPrefix)
ExistingFileHelperexists in class ExistingFileHelperloc - the base location of the resource, e.g.
"minecraft:block/stone"type - the type of resources to checkpathSuffix - a string to append after the path, e.g. ".json"pathPrefix - a string to append before the path, before a slash, e.g.
"models"true if the resource exists in any pack, false
otherwise