2014-02-27 08:10:11 +01:00
|
|
|
package appeng.integration.modules;
|
|
|
|
|
|
|
|
import invtweaks.api.InvTweaksAPI;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import appeng.integration.BaseModule;
|
|
|
|
import appeng.integration.abstraction.IInvTweaks;
|
2014-06-07 04:04:59 +02:00
|
|
|
import cpw.mods.fml.common.Loader;
|
2014-02-27 08:10:11 +01:00
|
|
|
|
|
|
|
public class InvTweaks extends BaseModule implements IInvTweaks
|
|
|
|
{
|
|
|
|
|
|
|
|
public static InvTweaks instance;
|
|
|
|
|
|
|
|
static InvTweaksAPI api;
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void Init()
|
|
|
|
{
|
2014-06-07 04:04:59 +02:00
|
|
|
api = (InvTweaksAPI) Loader.instance().getIndexedModList().get( "inventorytweaks" ).getMod();
|
2014-02-27 08:10:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void PostInit()
|
|
|
|
{
|
|
|
|
if ( api == null )
|
|
|
|
throw new RuntimeException( "InvTweaks API Instance Failed." );
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int compareItems(ItemStack i, ItemStack j)
|
|
|
|
{
|
|
|
|
return api.compareItems( i, j );
|
|
|
|
}
|
|
|
|
}
|