public enum OBJLoader extends java.lang.Enum<OBJLoader> implements ICustomModelLoader
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.lang.String> |
enabledDomains |
private IResourceManager |
manager |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(ResourceLocation modelLocation) |
void |
addDomain(java.lang.String domain) |
IModel |
loadModel(ResourceLocation modelLocation) |
void |
onResourceManagerReload(IResourceManager resourceManager) |
static OBJLoader |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OBJLoader[] |
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
onResourceManagerReload
public static final OBJLoader INSTANCE
private IResourceManager manager
private final java.util.Set<java.lang.String> enabledDomains
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)
accepts
in interface ICustomModelLoader
public IModel loadModel(ResourceLocation modelLocation) throws java.lang.Exception
loadModel
in interface ICustomModelLoader
java.lang.Exception