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