public class ModelLoaderRegistry
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ModelLoaderRegistry.LoaderException |
Constructor and Description |
---|
ModelLoaderRegistry() |
Modifier and Type | Method and Description |
---|---|
static void |
clearModelCache(IResourceManager manager) |
static ResourceLocation |
getActualLocation(ResourceLocation location) |
static IUnbakedModel |
getMissingModel() |
static IUnbakedModel |
getModel(ResourceLocation location)
Primary method to get IModel instances.
|
static IUnbakedModel |
getModelOrLogError(ResourceLocation location,
java.lang.String error)
Use this if you want the model, but need to log the error.
|
static IUnbakedModel |
getModelOrMissing(ResourceLocation location)
Use this if you don't care about the exception and want some model anyway.
|
static IAnimationStateMachine |
loadASM(ResourceLocation location,
com.google.common.collect.ImmutableMap<java.lang.String,ITimeValue> customParameters) |
static boolean |
loaded(ResourceLocation location) |
static void |
registerLoader(ICustomModelLoader loader) |
public static void registerLoader(ICustomModelLoader loader)
public static boolean loaded(ResourceLocation location)
public static ResourceLocation getActualLocation(ResourceLocation location)
public static IUnbakedModel getModel(ResourceLocation location) throws java.lang.Exception
java.lang.Exception
public static IUnbakedModel getModelOrMissing(ResourceLocation location)
public static IUnbakedModel getModelOrLogError(ResourceLocation location, java.lang.String error)
public static IUnbakedModel getMissingModel()
public static void clearModelCache(IResourceManager manager)
public static IAnimationStateMachine loadASM(ResourceLocation location, com.google.common.collect.ImmutableMap<java.lang.String,ITimeValue> customParameters)