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