public static enum MultiLayerModel.Loader extends java.lang.Enum<MultiLayerModel.Loader> implements ICustomModelLoader
IFutureReloadListener.IStage
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(ResourceLocation modelLocation)
Checks if given model should be loaded by this loader.
|
IUnbakedModel |
loadModel(ResourceLocation modelLocation) |
void |
onResourceManagerReload(IResourceManager resourceManager) |
static MultiLayerModel.Loader |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MultiLayerModel.Loader[] |
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, toString, valueOf
getResourceType, onResourceManagerReload
reload
public static final MultiLayerModel.Loader INSTANCE
public static MultiLayerModel.Loader[] values()
for (MultiLayerModel.Loader c : MultiLayerModel.Loader.values()) System.out.println(c);
public static MultiLayerModel.Loader 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 IResourceManagerReloadListener
onResourceManagerReload
in interface ICustomModelLoader
onResourceManagerReload
in interface ISelectiveResourceReloadListener
public boolean accepts(ResourceLocation modelLocation)
ICustomModelLoader
accepts
in interface ICustomModelLoader
modelLocation
- The path, either to an actual file or a ModelResourceLocation
.public IUnbakedModel loadModel(ResourceLocation modelLocation)
loadModel
in interface ICustomModelLoader
modelLocation
- The model to (re)load, either path to an
actual file or a ModelResourceLocation
.