Package logisticspipes.proxy

Source Code of logisticspipes.proxy.SpecialInventoryHandlerManager

package logisticspipes.proxy;

import logisticspipes.proxy.specialinventoryhandler.AEInterfaceInventoryHandler;
import logisticspipes.proxy.specialinventoryhandler.BarrelInventoryHandler;
import logisticspipes.proxy.specialinventoryhandler.CrateInventoryHandler;
import logisticspipes.proxy.specialinventoryhandler.DSUInventoryHandler;
import logisticspipes.proxy.specialinventoryhandler.DigitalChestHandler;
import logisticspipes.proxy.specialinventoryhandler.JABBAInventoryHandler;
import cpw.mods.fml.common.Loader;

public class SpecialInventoryHandlerManager {
 
  public static void load() {
    if(Loader.isModLoaded("factorization")) {
      SimpleServiceLocator.inventoryUtilFactory.registerHandler(new BarrelInventoryHandler());
    }
   
    if(Loader.isModLoaded("GregTech_Addon")) {
      SimpleServiceLocator.inventoryUtilFactory.registerHandler(new DigitalChestHandler());
    }

    if(Loader.isModLoaded("betterstorage")) {
      SimpleServiceLocator.inventoryUtilFactory.registerHandler(new CrateInventoryHandler());
    }

    if(Loader.isModLoaded("AppliedEnergistics2-Core") || Loader.isModLoaded("appliedenergistics2-core")) {
      SimpleServiceLocator.inventoryUtilFactory.registerHandler(new AEInterfaceInventoryHandler());
    }

    if(Loader.isModLoaded("JABBA")) {
      SimpleServiceLocator.inventoryUtilFactory.registerHandler(new JABBAInventoryHandler());
    }

    try {
      Class.forName("powercrystals.minefactoryreloaded.api.IDeepStorageUnit");
      SimpleServiceLocator.inventoryUtilFactory.registerHandler(new DSUInventoryHandler());
    } catch(ClassNotFoundException e) {
    }
  }
}
TOP

Related Classes of logisticspipes.proxy.SpecialInventoryHandlerManager

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.