More 1.7.2 stuff

This commit is contained in:
nekosune committed 2014-03-21 23:20:32 +00:00
1 parent 777ad58305
commit cccc40ccdf
469 files changed
+11277 -7405

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
package appeng.api;
/**
*
* Entry point for api.
*
* Available IMCs:
*
*/
public class AEApi
{
static private IAppEngApi api = null;
/**
* API Entry Point.
*
* @return the {@link IAppEngApi}
*/
public static IAppEngApi instance()
{
if ( api == null )
{
try
{
Class c = Class.forName( "appeng.core.Api" );
api = (IAppEngApi) c.getField( "instance" ).get( c );
}
catch (Throwable e)
{
return null;
}
}
return api;
}
}