protected static enum ModelLoader.VanillaLoader extends java.lang.Enum<ModelLoader.VanillaLoader> implements ICustomModelLoader
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
private ModelLoader |
loader |
private com.google.common.cache.LoadingCache<ModelLoader.BakedModelCacheKey,IBakedModel> |
modelCache |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(ResourceLocation modelLocation) |
(package private) ModelLoader |
getLoader() |
IModel |
loadModel(ResourceLocation modelLocation) |
void |
onResourceManagerReload(IResourceManager resourceManager) |
(package private) void |
setLoader(ModelLoader loader) |
java.lang.String |
toString() |
static ModelLoader.VanillaLoader |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModelLoader.VanillaLoader[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
onResourceManagerReload
public static final ModelLoader.VanillaLoader INSTANCE
@Nullable private ModelLoader loader
private com.google.common.cache.LoadingCache<ModelLoader.BakedModelCacheKey,IBakedModel> modelCache
public static ModelLoader.VanillaLoader[] values()
for (ModelLoader.VanillaLoader c : ModelLoader.VanillaLoader.values()) System.out.println(c);
public static ModelLoader.VanillaLoader 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 nullvoid setLoader(ModelLoader loader)
@Nullable ModelLoader getLoader()
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
onResourceManagerReload
in interface ICustomModelLoader
onResourceManagerReload
in interface ISelectiveResourceReloadListener
public boolean accepts(ResourceLocation modelLocation)
accepts
in interface ICustomModelLoader
public IModel loadModel(ResourceLocation modelLocation) throws java.lang.Exception
loadModel
in interface ICustomModelLoader
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Enum<ModelLoader.VanillaLoader>