mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
More 1.7.2 stuff
This commit is contained in:
1 parent
777ad58305
commit
cccc40ccdf
469 files changed
+11277
-7405
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user