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 IModel |
getMissingModel() |
static IModel |
getModel(ResourceLocation location)
Primary method to get IModel instances.
|
static IModel |
getModelOrLogError(ResourceLocation location,
java.lang.String error)
Use this if you want the model, but need to log the error.
|
static IModel |
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 IModel getModel(ResourceLocation location) throws java.lang.Exception
java.lang.Exception
public static IModel getModelOrMissing(ResourceLocation location)
public static IModel getModelOrLogError(ResourceLocation location, java.lang.String error)
public static IModel getMissingModel()
public static void clearModelCache(IResourceManager manager)
public static IAnimationStateMachine loadASM(ResourceLocation location, com.google.common.collect.ImmutableMap<java.lang.String,ITimeValue> customParameters)