// 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.ElectricItemUtils;
import net.machinemuse.utils.MuseCommonStrings;
import net.machinemuse.utils.MuseItemUtils;
import net.minecraft.block.Block;
import net.minecraft.block.BlockFlower;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import java.util.List;
    public String getCategory() {
        return MuseCommonStrings.CATEGORY_TOOL;
    }

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

    @Override
    public String getLocalizedName() {
        return Localization.translate("module.leafBlower.name");
    }

    @Override
    public String getDescription() {
        return "Create a torrent of air to knock plants out of the ground and leaves off of trees.";
    }

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

    @Override
    public void onRightClick(EntityPlayer player, World world, ItemStack item) {}

    @Override
    public void onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {
        int blockID = world.getBlockId(x, y, z);
// 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/LeafBlowerModule.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.ElectricItemUtils;
import net.machinemuse.utils.MuseCommonStrings;
import net.machinemuse.utils.MuseItemUtils;
import net.minecraft.block.Block;
import net.minecraft.block.BlockFlower;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import java.util.List;

    public String getCategory() {
        return MuseCommonStrings.CATEGORY_TOOL;
    }

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

    @Override
    public String getLocalizedName() {
        return Localization.translate("module.leafBlower.name");
    }

    @Override
    public String getDescription() {
        return "Create a torrent of air to knock plants out of the ground and leaves off of trees.";
    }

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

    @Override
    public void onRightClick(EntityPlayer player, World world, ItemStack item) {}

    @Override
    public void onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {
        int blockID = world.getBlockId(x, y, z);
        Block block = Block.blocksList[blockID];