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 classModelFile.ExistingModelFilestatic classModelFile.UncheckedModelFile
-
Field Summary
Fields Modifier and Type Field Description protected ResourceLocationlocation
-
Constructor Summary
Constructors Modifier Constructor Description protectedModelFile(ResourceLocation location)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidassertExistence()Assert that this model exists.protected abstract booleanexists()ResourceLocationgetLocation()ResourceLocationgetUncheckedLocation()
-
-
-
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()
-
-