public enum B3DLoader extends java.lang.Enum<B3DLoader> implements ICustomModelLoader
| Modifier and Type | Class and Description |
|---|---|
static class |
B3DLoader.B3DState |
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.
|
void |
addDomain(java.lang.String domain) |
IUnbakedModel |
loadModel(ResourceLocation modelLocation) |
void |
onResourceManagerReload(IResourceManager manager) |
static B3DLoader |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static B3DLoader[] |
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, valueOfgetResourceType, onResourceManagerReloadreloadpublic static final B3DLoader INSTANCE
public static B3DLoader[] values()
for (B3DLoader c : B3DLoader.values()) System.out.println(c);
public static B3DLoader 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 manager)
onResourceManagerReload in interface IResourceManagerReloadListeneronResourceManagerReload in interface ICustomModelLoaderonResourceManagerReload in interface ISelectiveResourceReloadListenerpublic boolean accepts(ResourceLocation modelLocation)
ICustomModelLoaderaccepts in interface ICustomModelLoadermodelLocation - The path, either to an actual file or a ModelResourceLocation.public IUnbakedModel loadModel(ResourceLocation modelLocation) throws java.lang.Exception
loadModel in interface ICustomModelLoadermodelLocation - The model to (re)load, either path to an
actual file or a ModelResourceLocation.java.lang.Exception