public class AdvancedModelLoader
extends java.lang.Object
getSupportedSuffixes()
method.
Instances can be created by calling #loadModel(String)
with a class-loadable-pathConstructor and Description |
---|
AdvancedModelLoader() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<java.lang.String> |
getSupportedSuffixes() |
static IModelCustom |
loadModel(ResourceLocation resource)
Load the model from the supplied classpath resolvable resource name
|
static void |
registerModelHandler(IModelCustomLoader modelHandler)
Register a new model handler
|
public static void registerModelHandler(IModelCustomLoader modelHandler)
modelHandler
- The model handler to registerpublic static IModelCustom loadModel(ResourceLocation resource) throws java.lang.IllegalArgumentException, ModelFormatException
resource
- The resource namejava.lang.IllegalArgumentException
- if the resource name cannot be understoodModelFormatException
- if the underlying model handler cannot parse the model formatpublic static java.util.Collection<java.lang.String> getSupportedSuffixes()