// Path: src/minecraft/andrew/powersuits/common/Localization.java
// public class Localization {
//     public static final String LANG_PATH = "/mods/PowersuitAddons/lang/";
//     public static String extractedLanguage = "";
// 
//     public static String getCurrentLanguage() {
//         return StringTranslate.getInstance().getCurrentLanguage();
//     }
// 
//     public static void loadCurrentLanguage() {
//         if (getCurrentLanguage() != extractedLanguage) {
//             extractedLanguage = getCurrentLanguage();
//         }
//         try {
//             InputStream inputStream = ModularPowersuitsAddons.INSTANCE.getClass().getResourceAsStream(LANG_PATH + extractedLanguage + ".lang");
//             Properties langPack = new Properties();
//             langPack.load(new InputStreamReader(inputStream, Charsets.UTF_8));
//             LanguageRegistry.instance().addStringLocalization(langPack, extractedLanguage);
//         } catch (Exception e) {
//             e.printStackTrace();
//             AddonLogger.logError("Couldn't read MPSA localizations for language " + extractedLanguage + " :(");
//         }
//     }
// 
//     public static String translate(String str) {
//         loadCurrentLanguage();
//         return StatCollector.translateToLocal(str);
//     }
// }


import andrew.powersuits.common.Localization;
import net.machinemuse.api.IModularItem;
import net.machinemuse.api.ModuleManager;
import net.machinemuse.api.moduletrigger.IRightClickModule;
import net.machinemuse.powersuits.item.ItemComponent;
import net.machinemuse.powersuits.powermodule.PowerModuleBase;
import net.machinemuse.utils.*;
import net.minecraft.entity.effect.EntityLightningBolt;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
import java.util.List;
package andrew.powersuits.modules;



/**
 * Created by User: Andrew2448
 * 5:56 PM 6/14/13
 */
public class LightningModule extends PowerModuleBase implements IRightClickModule {

    public static final String MODULE_LIGHTNING = "Lightning Summoner";
    public static final String LIGHTNING_ENERGY_CONSUMPTION = "Lightning Energy Consumption";
    public static final String HEAT = "Lightning Heat Emission";

    public LightningModule(List<IModularItem> validItems) {
        super(validItems);
        addInstallCost(MuseItemUtils.copyAndResize(ItemComponent.hvcapacitor, 1));
        addInstallCost(MuseItemUtils.copyAndResize(ItemComponent.solenoid, 2));
        addInstallCost(MuseItemUtils.copyAndResize(ItemComponent.fieldEmitter, 2));
        addBaseProperty(LIGHTNING_ENERGY_CONSUMPTION, 500000, "");
        addBaseProperty(HEAT, 100, "");
    }

    @Override
    public String getTextureFile() {
        return "bluestar";
    }

    @Override
    public String getCategory() {
        return MuseCommonStrings.CATEGORY_WEAPON;
    }

    @Override
    public String getDataName() {
// Path: src/minecraft/andrew/powersuits/common/Localization.java
// public class Localization {
//     public static final String LANG_PATH = "/mods/PowersuitAddons/lang/";
//     public static String extractedLanguage = "";
// 
//     public static String getCurrentLanguage() {
//         return StringTranslate.getInstance().getCurrentLanguage();
//     }
// 
//     public static void loadCurrentLanguage() {
//         if (getCurrentLanguage() != extractedLanguage) {
//             extractedLanguage = getCurrentLanguage();
//         }
//         try {
//             InputStream inputStream = ModularPowersuitsAddons.INSTANCE.getClass().getResourceAsStream(LANG_PATH + extractedLanguage + ".lang");
//             Properties langPack = new Properties();
//             langPack.load(new InputStreamReader(inputStream, Charsets.UTF_8));
//             LanguageRegistry.instance().addStringLocalization(langPack, extractedLanguage);
//         } catch (Exception e) {
//             e.printStackTrace();
//             AddonLogger.logError("Couldn't read MPSA localizations for language " + extractedLanguage + " :(");
//         }
//     }
// 
//     public static String translate(String str) {
//         loadCurrentLanguage();
//         return StatCollector.translateToLocal(str);
//     }
// }


// Path: src/minecraft/andrew/powersuits/modules/LightningModule.java
import andrew.powersuits.common.Localization;
import net.machinemuse.api.IModularItem;
import net.machinemuse.api.ModuleManager;
import net.machinemuse.api.moduletrigger.IRightClickModule;
import net.machinemuse.powersuits.item.ItemComponent;
import net.machinemuse.powersuits.powermodule.PowerModuleBase;
import net.machinemuse.utils.*;
import net.minecraft.entity.effect.EntityLightningBolt;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
import java.util.List;

package andrew.powersuits.modules;



/**
 * Created by User: Andrew2448
 * 5:56 PM 6/14/13
 */
public class LightningModule extends PowerModuleBase implements IRightClickModule {

    public static final String MODULE_LIGHTNING = "Lightning Summoner";
    public static final String LIGHTNING_ENERGY_CONSUMPTION = "Lightning Energy Consumption";
    public static final String HEAT = "Lightning Heat Emission";

    public LightningModule(List<IModularItem> validItems) {
        super(validItems);
        addInstallCost(MuseItemUtils.copyAndResize(ItemComponent.hvcapacitor, 1));
        addInstallCost(MuseItemUtils.copyAndResize(ItemComponent.solenoid, 2));
        addInstallCost(MuseItemUtils.copyAndResize(ItemComponent.fieldEmitter, 2));
        addBaseProperty(LIGHTNING_ENERGY_CONSUMPTION, 500000, "");
        addBaseProperty(HEAT, 100, "");
    }

    @Override
    public String getTextureFile() {
        return "bluestar";
    }

    @Override
    public String getCategory() {
        return MuseCommonStrings.CATEGORY_WEAPON;
    }

    @Override
    public String getDataName() {
        return MODULE_LIGHTNING;