// Path: src/minecraft/andrew/powersuits/common/GuiHandler.java
// public class GuiHandler implements IGuiHandler {
// 
//     public static int craftingGuiID = 0;
//     public static int manualGuiID = 1;
// 
//     @Override
//     public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
//         switch (ID) {
//             case 0:
//                 return new PortableCraftingContainer(player.inventory, world, (int) player.posX, (int) player.posY, (int) player.posZ);
//             default:
//                 return null;
//         }
//     }
// 
//     @Override
//     public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
//         switch (ID) {
//             case 0:
//                 return new PortableCraftingGui(player, world, (int) player.posX, (int) player.posY, (int) player.posZ);
//             case 1:
//                 ItemStack stack = player.getCurrentEquippedItem();
//                 return new ManualGui(stack, ClientProxy.manual);
//             default:
//                 return null;
//         }
//     }
// 
// }
// 
// Path: src/minecraft/andrew/powersuits/common/ModularPowersuitsAddons.java
// @Mod(modid = "PowersuitAddons", name = "Andrew's Modular Powersuits Addons", version = "@VERSION@", dependencies = "required-after:mmmPowersuits", acceptedMinecraftVersions = "[1.5,)")
// @NetworkMod(clientSideRequired = true, serverSideRequired = false,
//         clientPacketHandlerSpec = @SidedPacketHandler(channels = {"psa"}, packetHandler = AndrewPacketHandler.class),
//         serverPacketHandlerSpec = @SidedPacketHandler(channels = {"psa"}, packetHandler = AndrewPacketHandler.class))
// public class ModularPowersuitsAddons {
// 
//     public static GuiHandler guiHandler = new GuiHandler();
// 
//     public static ItemBook book;
// 
//     @Instance("PowersuitAddons")
//     public static ModularPowersuitsAddons INSTANCE;
// 
//     @SidedProxy(clientSide = "andrew.powersuits.client.ClientProxy", serverSide = "andrew.powersuits.common.CommonProxy")
//     public static CommonProxy proxy;
// 
//     @PreInit
//     public void preInit(FMLPreInitializationEvent event) {
//         AddonConfig.setConfigFolderBase(event.getModConfigurationDirectory());
//         AddonConfig.initItems();
//         proxy.registerRenderers();
//         //proxy.readManuals();
//     }
// 
//     @Init
//     public void load(FMLInitializationEvent event) {
//         //book = new ItemBook(AddonConfig.manualID);
//         AddonComponent.populate();
//         AddonConfig.loadPowerModules();
//         Localization.loadCurrentLanguage();
//         AddonConfig.loadOptions();
//         proxy.registerHandlers();
//         NetworkRegistry.instance().registerGuiHandler(this, guiHandler);
//     }
// 
//     @PostInit
//     public void postInit(FMLPostInitializationEvent event) {
//         AddonRecipeManager.addRecipes();
//         AddonConfig.getConfig().save();
//     }
// }


import andrew.powersuits.common.GuiHandler;
import andrew.powersuits.common.ModularPowersuitsAddons;
import net.machinemuse.api.IModularItem;
import net.machinemuse.api.moduletrigger.IRightClickModule;
import net.machinemuse.powersuits.item.ItemComponent;
import net.machinemuse.powersuits.powermodule.PowerModuleBase;
import net.machinemuse.utils.MuseCommonStrings;
import net.machinemuse.utils.MuseItemUtils;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import java.util.List;

    @Override
    public String getDataName() {
        return MODULE_PORTABLE_CRAFTING;
    }

    @Override
    public String getLocalizedName() {
        return StatCollector.translateToLocal("module.portableCraftingTable.name");
    }

    @Override
    public String getDescription() {
        return "A larger crafting grid, on the go.";
    }

    @Override
    public void onRightClick(EntityPlayer player, World world, ItemStack item) {
        player.openGui(ModularPowersuitsAddons.INSTANCE, GuiHandler.craftingGuiID, world, (int) player.posX, (int) player.posY, (int) player.posZ);
    }

    @Override
    public void onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {}

    @Override
    public boolean onItemUseFirst(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {
        return false;
    }

    @Override
// Path: src/minecraft/andrew/powersuits/common/GuiHandler.java
// public class GuiHandler implements IGuiHandler {
// 
//     public static int craftingGuiID = 0;
//     public static int manualGuiID = 1;
// 
//     @Override
//     public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
//         switch (ID) {
//             case 0:
//                 return new PortableCraftingContainer(player.inventory, world, (int) player.posX, (int) player.posY, (int) player.posZ);
//             default:
//                 return null;
//         }
//     }
// 
//     @Override
//     public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
//         switch (ID) {
//             case 0:
//                 return new PortableCraftingGui(player, world, (int) player.posX, (int) player.posY, (int) player.posZ);
//             case 1:
//                 ItemStack stack = player.getCurrentEquippedItem();
//                 return new ManualGui(stack, ClientProxy.manual);
//             default:
//                 return null;
//         }
//     }
// 
// }
// 
// Path: src/minecraft/andrew/powersuits/common/ModularPowersuitsAddons.java
// @Mod(modid = "PowersuitAddons", name = "Andrew's Modular Powersuits Addons", version = "@VERSION@", dependencies = "required-after:mmmPowersuits", acceptedMinecraftVersions = "[1.5,)")
// @NetworkMod(clientSideRequired = true, serverSideRequired = false,
//         clientPacketHandlerSpec = @SidedPacketHandler(channels = {"psa"}, packetHandler = AndrewPacketHandler.class),
//         serverPacketHandlerSpec = @SidedPacketHandler(channels = {"psa"}, packetHandler = AndrewPacketHandler.class))
// public class ModularPowersuitsAddons {
// 
//     public static GuiHandler guiHandler = new GuiHandler();
// 
//     public static ItemBook book;
// 
//     @Instance("PowersuitAddons")
//     public static ModularPowersuitsAddons INSTANCE;
// 
//     @SidedProxy(clientSide = "andrew.powersuits.client.ClientProxy", serverSide = "andrew.powersuits.common.CommonProxy")
//     public static CommonProxy proxy;
// 
//     @PreInit
//     public void preInit(FMLPreInitializationEvent event) {
//         AddonConfig.setConfigFolderBase(event.getModConfigurationDirectory());
//         AddonConfig.initItems();
//         proxy.registerRenderers();
//         //proxy.readManuals();
//     }
// 
//     @Init
//     public void load(FMLInitializationEvent event) {
//         //book = new ItemBook(AddonConfig.manualID);
//         AddonComponent.populate();
//         AddonConfig.loadPowerModules();
//         Localization.loadCurrentLanguage();
//         AddonConfig.loadOptions();
//         proxy.registerHandlers();
//         NetworkRegistry.instance().registerGuiHandler(this, guiHandler);
//     }
// 
//     @PostInit
//     public void postInit(FMLPostInitializationEvent event) {
//         AddonRecipeManager.addRecipes();
//         AddonConfig.getConfig().save();
//     }
// }


// Path: src/minecraft/andrew/powersuits/modules/InPlaceAssemblerModule.java
import andrew.powersuits.common.GuiHandler;
import andrew.powersuits.common.ModularPowersuitsAddons;
import net.machinemuse.api.IModularItem;
import net.machinemuse.api.moduletrigger.IRightClickModule;
import net.machinemuse.powersuits.item.ItemComponent;
import net.machinemuse.powersuits.powermodule.PowerModuleBase;
import net.machinemuse.utils.MuseCommonStrings;
import net.machinemuse.utils.MuseItemUtils;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import java.util.List;


    @Override
    public String getDataName() {
        return MODULE_PORTABLE_CRAFTING;
    }

    @Override
    public String getLocalizedName() {
        return StatCollector.translateToLocal("module.portableCraftingTable.name");
    }

    @Override
    public String getDescription() {
        return "A larger crafting grid, on the go.";
    }

    @Override
    public void onRightClick(EntityPlayer player, World world, ItemStack item) {
        player.openGui(ModularPowersuitsAddons.INSTANCE, GuiHandler.craftingGuiID, world, (int) player.posX, (int) player.posY, (int) player.posZ);
    }

    @Override
    public void onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {}

    @Override
    public boolean onItemUseFirst(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {
        return false;
    }

    @Override
    public void onPlayerStoppedUsing(ItemStack itemStack, World world, EntityPlayer player, int par4) {}