public abstract class ModelFile
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ModelFile.ExistingModelFile |
static class |
ModelFile.UncheckedModelFile |
Modifier and Type | Field and Description |
---|---|
protected ResourceLocation |
location |
Modifier | Constructor and Description |
---|---|
protected |
ModelFile(ResourceLocation location) |
Modifier and Type | Method and Description |
---|---|
void |
assertExistence()
Assert that this model exists.
|
protected abstract boolean |
exists() |
ResourceLocation |
getLocation() |
ResourceLocation |
getUncheckedLocation() |
protected ResourceLocation location
protected ModelFile(ResourceLocation location)
protected abstract boolean exists()
public ResourceLocation getLocation()
public void assertExistence()
java.lang.IllegalStateException
- if this model does not existpublic ResourceLocation getUncheckedLocation()