Class ModelFile
- java.lang.Object
-
- net.minecraftforge.client.model.generators.ModelFile
-
- Direct Known Subclasses:
ModelBuilder
,ModelFile.ExistingModelFile
,ModelFile.UncheckedModelFile
public abstract class ModelFile extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelFile.ExistingModelFile
static class
ModelFile.UncheckedModelFile
-
Field Summary
Fields Modifier and Type Field Description protected ResourceLocation
location
-
Constructor Summary
Constructors Modifier Constructor Description protected
ModelFile(ResourceLocation location)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
assertExistence()
Assert that this model exists.protected abstract boolean
exists()
ResourceLocation
getLocation()
ResourceLocation
getUncheckedLocation()
-
-
-
Field Detail
-
location
protected ResourceLocation location
-
-
Constructor Detail
-
ModelFile
protected ModelFile(ResourceLocation location)
-
-
Method Detail
-
exists
protected abstract boolean exists()
-
getLocation
public ResourceLocation getLocation()
-
assertExistence
public void assertExistence()
Assert that this model exists.- Throws:
java.lang.IllegalStateException
- if this model does not exist
-
getUncheckedLocation
public ResourceLocation getUncheckedLocation()
-
-