OSDN Git Service

修正・変更
authorponkotate <ponkotate@users.sourceforge.jp>
Sat, 30 Mar 2013 12:31:13 +0000 (21:31 +0900)
committerponkotate <ponkotate@users.sourceforge.jp>
Sat, 30 Mar 2013 12:31:13 +0000 (21:31 +0900)
・電池修正

common/pcc/chemicraft/core/ChemiCraftCore.java
common/pcc/chemicraft/core/ChemiCraftRegisterCoreRecipe.java
common/pcc/chemicraft/core/ChemiCraftRegisterItem.java

index eaddef1..350c563 100644 (file)
@@ -18,6 +18,7 @@ import pcc.chemicraft.core.creativetab.CreativeTabChemiCraft;
 import pcc.chemicraft.core.debug.CommandDeleteItem;
 import pcc.chemicraft.core.debug.CommandGenDebugRoom;
 import pcc.chemicraft.core.debug.CommandSetTile;
 import pcc.chemicraft.core.debug.CommandDeleteItem;
 import pcc.chemicraft.core.debug.CommandGenDebugRoom;
 import pcc.chemicraft.core.debug.CommandSetTile;
+import pcc.chemicraft.core.item.ItemChemiCell;
 import pcc.chemicraft.core.system.CommonProxy;
 import pcc.chemicraft.core.system.PacketHandler;
 import cpw.mods.fml.common.Loader;
 import pcc.chemicraft.core.system.CommonProxy;
 import pcc.chemicraft.core.system.PacketHandler;
 import cpw.mods.fml.common.Loader;
@@ -262,19 +263,15 @@ public class ChemiCraftCore extends ChemiCraft{
                // GUIを追加します
                NetworkRegistry.instance().registerGuiHandler(instance, proxy);
 
                // GUIを追加します
                NetworkRegistry.instance().registerGuiHandler(instance, proxy);
 
-               //電池を追加します
-               this.api.addChemicalCell(itemChemicalCells, "ChemicalCell", 1000);
-               this.api.addChemicalCellLanguage("ja_JP", "化学電池");
-
                this.api.addPyrolysisDecompositionFuel(new ItemStack(Item.coal), 2000*8);
        }
 
 
 
        private void apiProcessing(final FMLInitializationEvent event) {
                this.api.addPyrolysisDecompositionFuel(new ItemStack(Item.coal), 2000*8);
        }
 
 
 
        private void apiProcessing(final FMLInitializationEvent event) {
-               Iterator<String> langItr = this.api.getCompoundsName().keySet().iterator();
-               while (langItr.hasNext()) {
-                       String lang = langItr.next();
+               Iterator<String> langcompoundsItr = this.api.getCompoundsName().keySet().iterator();
+               while (langcompoundsItr.hasNext()) {
+                       String lang = langcompoundsItr.next();
                        ArrayList<String> names = this.api.getCompoundsName().get(lang);
                        for (int i = 0; i < names.size(); i++) {
                                LanguageRegistry.instance().addNameForObject(
                        ArrayList<String> names = this.api.getCompoundsName().get(lang);
                        for (int i = 0; i < names.size(); i++) {
                                LanguageRegistry.instance().addNameForObject(
index 44a210c..f592ad4 100644 (file)
@@ -57,7 +57,6 @@ public class ChemiCraftRegisterCoreRecipe extends ChemiCraftCoreRegister {
                /*
                 * 素材制作代のレシピ
                 */
                /*
                 * 素材制作代のレシピ
                 */
-
                //化学電池の追加
                this.mod.api.addMaterialRecipe(new ItemStack[] {
                                null,
                //化学電池の追加
                this.mod.api.addMaterialRecipe(new ItemStack[] {
                                null,
index 9f1a722..55fdb35 100644 (file)
@@ -36,6 +36,8 @@ public class ChemiCraftRegisterItem extends ChemiCraftCoreRegister {
                this.mod.nameAuxiliary.addName(this.mod.itemAtoms, "ja_JP", ChemiCraftCore.ATOMSNAMEJP);
                this.mod.nameAuxiliary.addName(this.mod.itemGasCollectingBottle, "GasCollectingBottle");
                this.mod.nameAuxiliary.addName(this.mod.itemGasCollectingBottle, "ja_JP", "集気瓶");
                this.mod.nameAuxiliary.addName(this.mod.itemAtoms, "ja_JP", ChemiCraftCore.ATOMSNAMEJP);
                this.mod.nameAuxiliary.addName(this.mod.itemGasCollectingBottle, "GasCollectingBottle");
                this.mod.nameAuxiliary.addName(this.mod.itemGasCollectingBottle, "ja_JP", "集気瓶");
+               this.mod.nameAuxiliary.addName(this.mod.itemChemicalCells, "ChemicalCell");
+               this.mod.nameAuxiliary.addName(this.mod.itemChemicalCells, "ja_JP",  "化学電池");
                this.mod.nameAuxiliary.addName(this.mod.itemPear, "Pear");
                this.mod.nameAuxiliary.addName(this.mod.itemPear, "ja_JP",  "梨");
 
                this.mod.nameAuxiliary.addName(this.mod.itemPear, "Pear");
                this.mod.nameAuxiliary.addName(this.mod.itemPear, "ja_JP",  "梨");