protected static enum ModelLoader.VariantLoader extends java.lang.Enum<ModelLoader.VariantLoader> implements ICustomModelLoader
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(ResourceLocation modelLocation) |
IModel |
loadModel(ResourceLocation modelLocation) |
void |
onResourceManagerReload(IResourceManager resourceManager) |
java.lang.String |
toString() |
static ModelLoader.VariantLoader |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModelLoader.VariantLoader[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModelLoader.VariantLoader INSTANCE
public static ModelLoader.VariantLoader[] values()
for (ModelLoader.VariantLoader c : ModelLoader.VariantLoader.values()) System.out.println(c);
public static ModelLoader.VariantLoader valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload in interface IResourceManagerReloadListenerpublic boolean accepts(ResourceLocation modelLocation)
accepts in interface ICustomModelLoaderpublic IModel loadModel(ResourceLocation modelLocation) throws java.lang.Exception
loadModel in interface ICustomModelLoaderjava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Enum<ModelLoader.VariantLoader>