Revisión | 336ea99ee01a5fc4c043b2213a21a8447e90e967 (tree) |
---|---|
Tiempo | 2013-02-17 09:14:17 |
Autor | mozipi <mozipi@user...> |
Commiter | mozipi |
とりあえずコミット
@@ -317,23 +317,23 @@ public class ChemiCraft { | ||
317 | 317 | }); |
318 | 318 | |
319 | 319 | //化合物を追加します |
320 | - api.addLangCompound("ja_JP", "ChlorousAcid", "亜塩素酸"); | |
320 | + this.api.addLangCompound("ja_JP", "ChlorousAcid", "亜塩素酸"); | |
321 | 321 | |
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", "水"); | |
325 | 325 | |
326 | 326 | |
327 | 327 | //化合物のHandlerを設定します |
328 | - api.settingCompoundHandler("Water", new CompoundWater()); | |
328 | + this.api.settingCompoundHandler("Water", new CompoundWater()); | |
329 | 329 | |
330 | 330 | //化合物のレシピを追加します |
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"))); | |
332 | 332 | |
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"))); | |
334 | 334 | |
335 | 335 | //手榴弾の追加 |
336 | - api.addMaterialRecipe(new ItemStack[] { | |
336 | + this.api.addMaterialRecipe(new ItemStack[] { | |
337 | 337 | null, |
338 | 338 | new ItemStack(Block.stone), |
339 | 339 | null, |
@@ -348,27 +348,27 @@ public class ChemiCraft { | ||
348 | 348 | new NBTRecipeGrenade() |
349 | 349 | ); |
350 | 350 | |
351 | - api.addDecompositionRecipe(new ItemStack(Item.potion, 1, 0), | |
351 | + this.api.addDecompositionRecipe(new ItemStack(Item.potion, 1, 0), | |
352 | 352 | new int[] {ChemiCraftData.HYDROGEN, ChemiCraftData.OXYGEN}, |
353 | 353 | new int[] {2, 1}); |
354 | 354 | |
355 | - api.addDecompositionRecipe(new ItemStack(this.itemCompounds, 1, api.getCompound("Water")), | |
355 | + this.api.addDecompositionRecipe(new ItemStack(this.itemCompounds, 1, this.api.getCompound("Water")), | |
356 | 356 | new int[] {ChemiCraftData.HYDROGEN, ChemiCraftData.OXYGEN}, |
357 | 357 | new int[] {2, 1}); |
358 | 358 | |
359 | - api.addDecompositionFuel(new ItemStack(Item.coal), 2000*8); | |
359 | + this.api.addDecompositionFuel(new ItemStack(Item.coal), 2000*8); | |
360 | 360 | } |
361 | 361 | |
362 | 362 | private void apiProcessing(final FMLPostInitializationEvent event) { |
363 | 363 | // 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()); | |
367 | 367 | } |
368 | 368 | |
369 | 369 | //鉱石の生成 |
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))); | |
372 | 372 | } |
373 | 373 | |
374 | 374 | } |
@@ -382,13 +382,13 @@ public class ChemiCraft { | ||
382 | 382 | /* |
383 | 383 | * TWDebug |
384 | 384 | */ |
385 | - api.addToolAndWeaponRecipe(new ItemStack[] { | |
385 | + this.api.addToolAndWeaponRecipe(new ItemStack[] { | |
386 | 386 | new ItemStack(Block.stone, 1, 1) |
387 | 387 | }, |
388 | 388 | new ItemStack(Block.dirt, 1, 0)); |
389 | 389 | |
390 | 390 | //鉱石を追加します |
391 | - api.addAtomsOre(Block.blockDiamond.blockID, 0, 5, 5, 20); | |
391 | + this.api.addAtomsOre(Block.blockDiamond.blockID, 0, 5, 5, 20); | |
392 | 392 | } |
393 | 393 | |
394 | 394 | } |