YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraftforge.client.model.AdvancedModelLoader Class Reference

Static Public Member Functions

static void registerModelHandler (IModelCustomLoader modelHandler)
 
static IModelCustom loadModel (String resourceName) throws IllegalArgumentException, ModelFormatException
 
static Collection< String > getSupportedSuffixes ()
 

Detailed Description

Common interface for advanced model loading from files, based on file suffix Model support can be queried through the getSupportedSuffixes() method. Instances can be created by calling loadModel(String) with a class-loadable-path

Author
cpw

Member Function Documentation

static Collection<String> net.minecraftforge.client.model.AdvancedModelLoader.getSupportedSuffixes ( )
static
static IModelCustom net.minecraftforge.client.model.AdvancedModelLoader.loadModel ( String  resourceName) throws IllegalArgumentException, ModelFormatException
static

Load the model from the supplied classpath resolvable resource name

Parameters
resourceNameThe resource name
Returns
A model
Exceptions
IllegalArgumentExceptionif the resource name cannot be understood
ModelFormatExceptionif the underlying model handler cannot parse the model format
static void net.minecraftforge.client.model.AdvancedModelLoader.registerModelHandler ( IModelCustomLoader  modelHandler)
static

Register a new model handler

Parameters
modelHandlerThe model handler to register

The documentation for this class was generated from the following file: