21 lines
650 B
Java
21 lines
650 B
Java
package net.minecraftforge.client.model;
|
|
|
|
import java.io.IOException;
|
|
|
|
import net.minecraft.client.resources.IResourceManagerReloadListener;
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public interface ICustomModelLoader extends IResourceManagerReloadListener
|
|
{
|
|
/*
|
|
* Checks if given model should be loaded by this loader.
|
|
* Reading file contents is inadvisable, if possible decision should be made based on the location alone.
|
|
*/
|
|
public boolean accepts(ResourceLocation modelLocation);
|
|
|
|
/*
|
|
* loads (or reloads) specified model
|
|
*/
|
|
public IModel loadModel(ResourceLocation modelLocation) throws IOException;
|
|
}
|