    001package net.minecraftforge.client.model.obj;
    002
    003import java.io.InputStream;
    004import java.net.URL;
    005
    006import net.minecraftforge.client.model.IModelCustom;
    007import net.minecraftforge.client.model.IModelCustomLoader;
    008import net.minecraftforge.client.model.ModelFormatException;
    009
    010public class ObjModelLoader implements IModelCustomLoader {
    011
    012    @Override
    013    public String getType()
    014    {
    015        return "OBJ model";
    016    }
    017
    018    private static final String[] types = { "obj" };
    019    @Override
    020    public String[] getSuffixes()
    021    {
    022        return types;
    023    }
    024
    025    @Override
    026    public IModelCustom loadInstance(String resourceName, URL resource) throws ModelFormatException
    027    {
    028        return new WavefrontObject(resourceName, resource);
    029    }
    030
    031}