@Deprecated
public class ModelLoaderRegistry
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ModelLoaderRegistry.LoaderException
Deprecated.
|
Constructor and Description |
---|
ModelLoaderRegistry()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
clearModelCache(IResourceManager manager)
Deprecated.
|
static ResourceLocation |
getActualLocation(ResourceLocation location)
Deprecated.
|
static IUnbakedModel |
getMissingModel()
Deprecated.
|
static IUnbakedModel |
getModel(ResourceLocation location)
Deprecated.
Primary method to get IModel instances.
|
static IUnbakedModel |
getModelOrLogError(ResourceLocation location,
java.lang.String error)
Deprecated.
Use this if you want the model, but need to log the error.
|
static IUnbakedModel |
getModelOrMissing(ResourceLocation location)
Deprecated.
Use this if you don't care about the exception and want some model anyway.
|
static void |
init()
Deprecated.
|
static boolean |
isCustomModel(ResourceLocation location)
Deprecated.
|
static IAnimationStateMachine |
loadASM(ResourceLocation location,
com.google.common.collect.ImmutableMap<java.lang.String,ITimeValue> customParameters)
Deprecated.
|
static boolean |
loaded(ResourceLocation location)
Deprecated.
|
static void |
registerLoader(ICustomModelLoader loader)
Deprecated.
Makes system aware of your loader.
|
public static void init()
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
location
- The path to load, either:
- Pure ResourceLocation
. "models/" will be prepended to the path, then
the path is passed to the ICustomModelLoader
s, which may further modify
the path before asking resource packs for it. For example, the ModelLoader.VanillaLoader
appends ".json" before looking the model up.
- ModelResourceLocation
. The blockstate system will load the model, using ModelLoader.VariantLoader
.java.lang.Exception
public static boolean isCustomModel(ResourceLocation location)
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)