• R/O
  • HTTP
  • SSH
  • HTTPS

ChemiCraftNext: Commit


Commit MetaInfo

Revisión336ea99ee01a5fc4c043b2213a21a8447e90e967 (tree)
Tiempo2013-02-17 09:14:17
Autormozipi <mozipi@user...>
Commitermozipi

Log Message

とりあえずコミット

Cambiar Resumen

Diferencia incremental

--- a/common/pcc/chemicraft/ChemiCraft.java
+++ b/common/pcc/chemicraft/ChemiCraft.java
@@ -317,23 +317,23 @@ public class ChemiCraft {
317317 });
318318
319319 //化合物を追加します
320- api.addLangCompound("ja_JP", "ChlorousAcid", "亜塩素酸");
320+ this.api.addLangCompound("ja_JP", "ChlorousAcid", "亜塩素酸");
321321
322- api.addLangCompound("ja_JP", "CarbonMonoxide", "一酸化炭素");
323- api.addLangCompound("ja_JP", "CarbonDioxide", "二酸化炭素");
324- api.addLangCompound("ja_JP", "Water", "水");
322+ this.api.addLangCompound("ja_JP", "CarbonMonoxide", "一酸化炭素");
323+ this.api.addLangCompound("ja_JP", "CarbonDioxide", "二酸化炭素");
324+ this.api.addLangCompound("ja_JP", "Water", "水");
325325
326326
327327 //化合物のHandlerを設定します
328- api.settingCompoundHandler("Water", new CompoundWater());
328+ this.api.settingCompoundHandler("Water", new CompoundWater());
329329
330330 //化合物のレシピを追加します
331- api.addChemicalCombinationRecipe(new String[]{"H", "O", "Cl"}, new Integer[]{1, 2, 1}, new ItemStack(this.itemCompounds, 1, api.getCompound("ChlorousAcid")));
331+ this.api.addChemicalCombinationRecipe(new String[]{"H", "O", "Cl"}, new Integer[]{1, 2, 1}, new ItemStack(this.itemCompounds, 1, this.api.getCompound("ChlorousAcid")));
332332
333- api.addChemicalCombinationRecipe(new String[]{"H", "O"}, new Integer[]{2, 1}, new ItemStack(this.itemCompounds, 1, api.getCompound("Water")));
333+ this.api.addChemicalCombinationRecipe(new String[]{"H", "O"}, new Integer[]{2, 1}, new ItemStack(this.itemCompounds, 1, this.api.getCompound("Water")));
334334
335335 //手榴弾の追加
336- api.addMaterialRecipe(new ItemStack[] {
336+ this.api.addMaterialRecipe(new ItemStack[] {
337337 null,
338338 new ItemStack(Block.stone),
339339 null,
@@ -348,27 +348,27 @@ public class ChemiCraft {
348348 new NBTRecipeGrenade()
349349 );
350350
351- api.addDecompositionRecipe(new ItemStack(Item.potion, 1, 0),
351+ this.api.addDecompositionRecipe(new ItemStack(Item.potion, 1, 0),
352352 new int[] {ChemiCraftData.HYDROGEN, ChemiCraftData.OXYGEN},
353353 new int[] {2, 1});
354354
355- api.addDecompositionRecipe(new ItemStack(this.itemCompounds, 1, api.getCompound("Water")),
355+ this.api.addDecompositionRecipe(new ItemStack(this.itemCompounds, 1, this.api.getCompound("Water")),
356356 new int[] {ChemiCraftData.HYDROGEN, ChemiCraftData.OXYGEN},
357357 new int[] {2, 1});
358358
359- api.addDecompositionFuel(new ItemStack(Item.coal), 2000*8);
359+ this.api.addDecompositionFuel(new ItemStack(Item.coal), 2000*8);
360360 }
361361
362362 private void apiProcessing(final FMLPostInitializationEvent event) {
363363 // API用の処理
364- this.nameAuxiliary.addName(itemCompounds, api.getCompoundsName().toArray());
365- for (int i = 0; i < api.getCompoundsLang().size(); i++) {
366- this.nameAuxiliary.addName(itemCompounds, api.getCompoundsLang().get(i), api.getCompoundsLangName().toArray());
364+ this.nameAuxiliary.addName(itemCompounds, this.api.getCompoundsName().toArray());
365+ for (int i = 0; i < this.api.getCompoundsLang().size(); i++) {
366+ this.nameAuxiliary.addName(itemCompounds, this.api.getCompoundsLang().get(i), this.api.getCompoundsLangName().toArray());
367367 }
368368
369369 //鉱石の生成
370- for (int i = 0; i < api.getAtomsOreIDList().size(); i++) {
371- GameRegistry.registerWorldGenerator(new WorldGenAtomsOre(api.getAtomsOreIDList().get(i), api.getAtomsOreMetaList().get(i), api.getAtomsOreSizeList().get(i), api.getAtomsOreFrequencyList().get(i), api.getAtomsOrePosYList().get(i)));
370+ for (int i = 0; i < this.api.getAtomsOreIDList().size(); i++) {
371+ 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)));
372372 }
373373
374374 }
@@ -382,13 +382,13 @@ public class ChemiCraft {
382382 /*
383383 * TWDebug
384384 */
385- api.addToolAndWeaponRecipe(new ItemStack[] {
385+ this.api.addToolAndWeaponRecipe(new ItemStack[] {
386386 new ItemStack(Block.stone, 1, 1)
387387 },
388388 new ItemStack(Block.dirt, 1, 0));
389389
390390 //鉱石を追加します
391- api.addAtomsOre(Block.blockDiamond.blockID, 0, 5, 5, 20);
391+ this.api.addAtomsOre(Block.blockDiamond.blockID, 0, 5, 5, 20);
392392 }
393393
394394 }
Show on old repository browser