mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
39 lines
482 B
Java
39 lines
482 B
Java
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;
|
|
}
|
|
|
|
}
|