More interface work
This commit is contained in:
parent
091c4ab6ac
commit
d4b71ef964
|
@ -4,7 +4,7 @@ package net.minecraftforge.client.model;
|
||||||
|
|
||||||
public interface IModelCustom {
|
public interface IModelCustom {
|
||||||
|
|
||||||
public abstract void load(String fileName);
|
public abstract IModelCustom load(String fileName);
|
||||||
|
|
||||||
public abstract void renderAll();
|
public abstract void renderAll();
|
||||||
|
|
||||||
|
|
|
@ -60,16 +60,9 @@ public class WavefrontObject implements IModelCustom
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void load(String fileName)
|
public IModelCustom load(String fileName)
|
||||||
{
|
{
|
||||||
try
|
return new WavefrontObject(fileName);
|
||||||
{
|
|
||||||
loadObjModel(this.getClass().getResource(fileName));
|
|
||||||
}
|
|
||||||
catch (DataFormatException e)
|
|
||||||
{
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void load()
|
public void load()
|
||||||
|
|
Loading…
Reference in New Issue