OSDN Git Service

とりあえずコミット
authormozipi <mozipi@users.sourceforge.jp>
Sun, 17 Feb 2013 00:14:17 +0000 (09:14 +0900)
committermozipi <mozipi@users.sourceforge.jp>
Sun, 17 Feb 2013 00:14:17 +0000 (09:14 +0900)
common/pcc/chemicraft/ChemiCraft.java

index e0981e9..7614b10 100644 (file)
@@ -317,23 +317,23 @@ public class ChemiCraft {
                });
 
                //化合物を追加します
                });
 
                //化合物を追加します
-               api.addLangCompound("ja_JP", "ChlorousAcid", "亜塩素酸");
+               this.api.addLangCompound("ja_JP", "ChlorousAcid", "亜塩素酸");
 
 
-               api.addLangCompound("ja_JP", "CarbonMonoxide", "一酸化炭素");
-               api.addLangCompound("ja_JP", "CarbonDioxide", "二酸化炭素");
-               api.addLangCompound("ja_JP", "Water", "水");
+               this.api.addLangCompound("ja_JP", "CarbonMonoxide", "一酸化炭素");
+               this.api.addLangCompound("ja_JP", "CarbonDioxide", "二酸化炭素");
+               this.api.addLangCompound("ja_JP", "Water", "水");
 
 
                //化合物のHandlerを設定します
 
 
                //化合物のHandlerを設定します
-               api.settingCompoundHandler("Water", new CompoundWater());
+               this.api.settingCompoundHandler("Water", new CompoundWater());
 
                //化合物のレシピを追加します
 
                //化合物のレシピを追加します
-               api.addChemicalCombinationRecipe(new String[]{"H", "O", "Cl"}, new Integer[]{1, 2, 1}, new ItemStack(this.itemCompounds, 1, api.getCompound("ChlorousAcid")));
+               this.api.addChemicalCombinationRecipe(new String[]{"H", "O", "Cl"}, new Integer[]{1, 2, 1}, new ItemStack(this.itemCompounds, 1, this.api.getCompound("ChlorousAcid")));
 
 
-               api.addChemicalCombinationRecipe(new String[]{"H", "O"}, new Integer[]{2, 1}, new ItemStack(this.itemCompounds, 1, api.getCompound("Water")));
+               this.api.addChemicalCombinationRecipe(new String[]{"H", "O"}, new Integer[]{2, 1}, new ItemStack(this.itemCompounds, 1, this.api.getCompound("Water")));
 
                //手榴弾の追加
 
                //手榴弾の追加
-               api.addMaterialRecipe(new ItemStack[] {
+               this.api.addMaterialRecipe(new ItemStack[] {
                                null,
                                new ItemStack(Block.stone),
                                null,
                                null,
                                new ItemStack(Block.stone),
                                null,
@@ -348,27 +348,27 @@ public class ChemiCraft {
                new NBTRecipeGrenade()
                                );
 
                new NBTRecipeGrenade()
                                );
 
-               api.addDecompositionRecipe(new ItemStack(Item.potion, 1, 0),
+               this.api.addDecompositionRecipe(new ItemStack(Item.potion, 1, 0),
                                new int[] {ChemiCraftData.HYDROGEN, ChemiCraftData.OXYGEN},
                                new int[] {2, 1});
 
                                new int[] {ChemiCraftData.HYDROGEN, ChemiCraftData.OXYGEN},
                                new int[] {2, 1});
 
-               api.addDecompositionRecipe(new ItemStack(this.itemCompounds, 1, api.getCompound("Water")),
+               this.api.addDecompositionRecipe(new ItemStack(this.itemCompounds, 1, this.api.getCompound("Water")),
                                new int[] {ChemiCraftData.HYDROGEN, ChemiCraftData.OXYGEN},
                                new int[] {2, 1});
 
                                new int[] {ChemiCraftData.HYDROGEN, ChemiCraftData.OXYGEN},
                                new int[] {2, 1});
 
-               api.addDecompositionFuel(new ItemStack(Item.coal), 2000*8);
+               this.api.addDecompositionFuel(new ItemStack(Item.coal), 2000*8);
        }
 
        private void apiProcessing(final FMLPostInitializationEvent event) {
                // API用の処理
        }
 
        private void apiProcessing(final FMLPostInitializationEvent event) {
                // API用の処理
-               this.nameAuxiliary.addName(itemCompounds, api.getCompoundsName().toArray());
-               for (int i = 0; i < api.getCompoundsLang().size(); i++) {
-                       this.nameAuxiliary.addName(itemCompounds, api.getCompoundsLang().get(i), api.getCompoundsLangName().toArray());
+               this.nameAuxiliary.addName(itemCompounds, this.api.getCompoundsName().toArray());
+               for (int i = 0; i < this.api.getCompoundsLang().size(); i++) {
+                       this.nameAuxiliary.addName(itemCompounds, this.api.getCompoundsLang().get(i), this.api.getCompoundsLangName().toArray());
                }
 
                //鉱石の生成
                }
 
                //鉱石の生成
-               for (int i = 0; i < api.getAtomsOreIDList().size(); i++) {
-                       GameRegistry.registerWorldGenerator(new WorldGenAtomsOre(api.getAtomsOreIDList().get(i), api.getAtomsOreMetaList().get(i), api.getAtomsOreSizeList().get(i), api.getAtomsOreFrequencyList().get(i), api.getAtomsOrePosYList().get(i)));
+               for (int i = 0; i < this.api.getAtomsOreIDList().size(); i++) {
+                       GameRegistry.registerWorldGenerator(new WorldGenAtomsOre(this.api.getAtomsOreIDList().get(i), this.api.getAtomsOreMetaList().get(i), this.api.getAtomsOreSizeList().get(i), this.api.getAtomsOreFrequencyList().get(i), this.api.getAtomsOrePosYList().get(i)));
                }
 
        }
                }
 
        }
@@ -382,13 +382,13 @@ public class ChemiCraft {
                /*
                 * TWDebug
                 */
                /*
                 * TWDebug
                 */
-               api.addToolAndWeaponRecipe(new ItemStack[] {
+               this.api.addToolAndWeaponRecipe(new ItemStack[] {
                                new ItemStack(Block.stone, 1, 1)
                },
                new ItemStack(Block.dirt, 1, 0));
 
                //鉱石を追加します
                                new ItemStack(Block.stone, 1, 1)
                },
                new ItemStack(Block.dirt, 1, 0));
 
                //鉱石を追加します
-               api.addAtomsOre(Block.blockDiamond.blockID, 0, 5, 5, 20);
+               this.api.addAtomsOre(Block.blockDiamond.blockID, 0, 5, 5, 20);
        }
 
 }
        }
 
 }