34 lines
732 B
Java
34 lines
732 B
Java
package appeng.integration.modules;
|
|
|
|
import invtweaks.api.InvTweaksAPI;
|
|
import net.minecraft.item.ItemStack;
|
|
import appeng.integration.BaseModule;
|
|
import appeng.integration.abstraction.IInvTweaks;
|
|
import cpw.mods.fml.common.Loader;
|
|
|
|
public class InvTweaks extends BaseModule implements IInvTweaks
|
|
{
|
|
|
|
public static InvTweaks instance;
|
|
|
|
static InvTweaksAPI api;
|
|
|
|
@Override
|
|
public void Init()
|
|
{
|
|
api = (InvTweaksAPI) Loader.instance().getIndexedModList().get( "inventorytweaks" ).getMod();
|
|
}
|
|
|
|
@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 );
|
|
}
|
|
}
|