Files
WailaHarvestability/java/squeek/wailaharvestability/proxy/ProxyIguanaTweaks.java
T
2014-05-01 22:39:55 -07:00

39 lines
816 B
Java

package squeek.wailaharvestability.proxy;
import java.lang.reflect.Method;
public class ProxyIguanaTweaks
{
private static Class<?> IguanaTweaksTConstruct = null;
private static Method proxyGetHarvestLevelName;
public static void init()
{
try
{
IguanaTweaksTConstruct = Class.forName("iguanaman.iguanatweakstconstruct.IguanaTweaksTConstruct");
proxyGetHarvestLevelName = IguanaTweaksTConstruct.getDeclaredMethod("getHarvestLevelName", int.class);
}
catch (Exception e)
{
e.printStackTrace();
}
}
public static String getHarvestLevelName(int num)
{
String harvestLevelName = "<Unknown>";
try
{
harvestLevelName = (String) proxyGetHarvestLevelName.invoke(IguanaTweaksTConstruct, num);
}
catch (Exception e)
{
e.printStackTrace();
}
return harvestLevelName;
}
}