Applied-Energistics-2-tiler.../integration/modules/InvTweaks.java
AlgorithmX2 9f0f84a93f Added Sort By Inventory Tweaks.
NEI and Invtweaks options are now hidden without the supporting mod.
2014-02-27 01:10:11 -06:00

35 lines
673 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.Mod.Instance;
public class InvTweaks extends BaseModule implements IInvTweaks
{
public static InvTweaks instance;
@Instance("inventorytweaks")
static InvTweaksAPI api;
@Override
public void Init()
{
}
@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 );
}
}