OSDN Git Service

(*´ω`*)
[chemicraft/ChemiCraftNext.git] / common / pcc / chemicraft / base / ChemiCraftRegisterChemicalRecipe.java
index b459e1d..20db7ed 100644 (file)
@@ -1,6 +1,9 @@
 package pcc.chemicraft.base;
 
+import pcc.chemicraft.ChemiCraftData;
 import pcc.chemicraft.base.gen.EnumOreSpawnFrequency;
+import pcc.chemicraft.core.ChemiCraftCore;
+import pcc.chemicraft.util.AtomInfo;
 import pcc.chemicraft.util.Formula;
 
 public class ChemiCraftRegisterChemicalRecipe extends ChemiCraftBaseRegister
@@ -16,227 +19,38 @@ public class ChemiCraftRegisterChemicalRecipe extends ChemiCraftBaseRegister
        {
                // 元素入手手段
 
-               // 水素
-               // 水を分解。
-
-               // ヘリウム
-               // 未定。
-
-               // リチウム
-               this.mod.apiBase.addAtomOres(
-                               "LithiumOre",
-                               new Formula("LiAlSi4O10"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // LiAlSi4O10
-               this.mod.apiBase.addAtomOresLanguage("LithiumOre", "リチウム鉱石", "ja_JP");
-
-               // ベリリウム
-               this.mod.apiBase.addAtomOres(
-                               "BerylliumOre",
-                               new Formula("Be3Al2Si6O18"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // Be3Al2Si6O18
-               this.mod.apiBase.addAtomOresLanguage("BerylliumOre", "ベリリウム鉱石", "ja_JP");
-
-               // ホウ素
-               this.mod.apiBase.addAtomOres(
-                               "BoronOre",
-                               new Formula("NaCaB5O6(OH)6・5H2O"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // NaCaB5O6(OH)6・5H2O
-               this.mod.apiBase.addAtomOresLanguage("BoronOre", "ホウ素鉱石", "ja_JP");
-
-               // 炭素
-               // 石炭or石炭鉱石を熱分解。
-
-               // フッ素
-               this.mod.apiBase.addAtomOres(
-                               "FluorineOre",
-                               new Formula("CaF2"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // CaF2
-               this.mod.apiBase.addAtomOresLanguage("FluorineOre", "フッ素鉱石", "ja_JP");
-
-               // ナトリウム
-               this.mod.apiBase.addAtomOres(
-                               "SodiumOre",
-                               new Formula("NaCl"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // NaCl
-               this.mod.apiBase.addAtomOresLanguage("SodiumOre", "ナトリウム鉱石", "ja_JP");
-
-               // マグネシウム
-               this.mod.apiBase.addAtomOres(
-                               "MagnesiumOre",
-                               new Formula("CaMg(CO3)2"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // CaMg(CO3)2
-               this.mod.apiBase.addAtomOresLanguage("MagnesiumOre", "マグネシウム鉱石", "ja_JP");
-
-               // アルミニウム
-               this.mod.apiBase.addAtomOres(
-                               "AluminiumOre",
-                               new Formula("Al(OH)3"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // Al(OH)3
-               this.mod.apiBase.addAtomOresLanguage("AluminiumOre", "アルミニウム鉱石", "ja_JP");
-
-               // ケイ素
-               // 1.5まで保留。
-
-               // リン
-               this.mod.apiBase.addAtomOres(
-                               "PhosphorusOre",
-                               new Formula("Ca5(PO4)3F"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // Ca5(PO4)3F
-               this.mod.apiBase.addAtomOresLanguage("PhosphorusOre", "リン鉱石", "ja_JP");
-
-               // 硫黄
-               this.mod.apiBase.addAtomOres(
-                               "SulfurOre",
-                               new Formula("S"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // S
-               this.mod.apiBase.addAtomOresLanguage("SulfurOre", "硫黄鉱石", "ja_JP");
-
-               // カリウム
-               this.mod.apiBase.addAtomOres(
-                               "PotassiumOre",
-                               new Formula("KCl"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // KCl
-               this.mod.apiBase.addAtomOresLanguage("PotassiumOre", "カリウム鉱石", "ja_JP");
-
-               // カルシウム
-               this.mod.apiBase.addAtomOres(
-                               "CalciumOre",
-                               new Formula("CaCO3"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // CaCO3
-               this.mod.apiBase.addAtomOresLanguage("CalciumOre", "カルシウム鉱石", "ja_JP");
-
-               // スカンジウム
-               this.mod.apiBase.addAtomOres(
-                               "ScandiumOre",
-                               new Formula("Sc2Si2O7"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // (Sc,Y)2Si2O7
-               this.mod.apiBase.addAtomOresLanguage("ScandiumOre", "スカンジウム鉱石", "ja_JP");
-
-               // チタン
-               this.mod.apiBase.addAtomOres(
-                               "TitaniumOre",
-                               new Formula("TiO2"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // TiO2
-               this.mod.apiBase.addAtomOresLanguage("TitaniumOre", "チタン鉱石", "ja_JP");
-
-               // バナジウム
-               this.mod.apiBase.addAtomOres(
-                               "VanadiumOre",
-                               new Formula("K2(UO2)2V2O8・3H2O"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // K2(UO2)2V2O8・3H2O
-               this.mod.apiBase.addAtomOresLanguage("VanadiumOre", "バナジウム鉱石", "ja_JP");
-
-               // クロム
-               this.mod.apiBase.addAtomOres(
-                               "Chromium",
-                               new Formula("FeCr2O4"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               this.mod.apiBase.addAtomOresLanguage("Chromium", "クロム鉱石", "ja_JP");
-               // FeCr2O4
-
-               // マンガン
-               this.mod.apiBase.addAtomOres(
-                               "ManganeseOre",
-                               new Formula("MnO2"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               this.mod.apiBase.addAtomOresLanguage("ManganeseOre", "マンガン鉱石", "ja_JP");
-               // MnO2
-
-               // コバルト
-               this.mod.apiBase.addAtomOres(
-                               "CobaltOre",
-                               new Formula("CoAsS"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               this.mod.apiBase.addAtomOresLanguage("CobaltOre", "コバルト鉱石", "ja_JP");
-               // CoAsS
-
-               // ニッケル
-               this.mod.apiBase.addAtomOres(
-                               "NickelOre",
-                               new Formula("Ni3Si2O5(OH)4"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               // (Ni,Mg)3Si2O5(OH)4
-               this.mod.apiBase.addAtomOresLanguage("NickelOre", "ニッケル鉱石", "ja_JP");
-
-               // 銅
-               // IC2で入手
-
-               // 亜鉛
-               this.mod.apiBase.addAtomOres(
-                               "ZincOre",
-                               new Formula("ZnS"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               this.mod.apiBase.addAtomOresLanguage("ZincOre", "亜鉛鉱石", "ja_JP");
-               // (Zn,Fe)S
-
-               // ガリウム
-               this.mod.apiBase.addAtomOres(
-                               "Gallium",
-                               new Formula("Ga"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               this.mod.apiBase.addAtomOresLanguage("Gallium", "ガリウム鉱石", "ja_JP");
-               // Ga
-
-               // ゲルマニウム
-               this.mod.apiBase.addAtomOres(
-                               "GermaniumOre",
-                               new Formula("Ge"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               this.mod.apiBase.addAtomOresLanguage("GermaniumOre", "ゲルマニウム鉱石", "ja_JP");
-               // Ge
-
-               // ヒ素
-               this.mod.apiBase.addAtomOres(
-                               "ArsenicOre",
-                               new Formula("As2S3"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               this.mod.apiBase.addAtomOresLanguage("ArsenicOre", "ヒ素鉱石", "ja_JP");
-               // As2S3
-
-               // ルビジウム
-               this.mod.apiBase.addAtomOres(
-                               "RubidiumOre",
-                               new Formula("Rb"),
-                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
-                               EnumOreSpawnFrequency.NORMAL);
-               this.mod.apiBase.addAtomOresLanguage("RubidiumOre", "ルビジウム鉱石", "ja_JP");
-               // Rb
+               //鉱石郡
+               for (int i = 0; i < this.mod.chemicalData.ATOMSLIST.length; i++)
+               {
+                       if (AtomInfo.isSolid(i + 1) && !AtomInfo.isLanthanoid(i + 1) && !AtomInfo.isActinoid(i + 1))
+                       {
+                               String var1 = ChemiCraftCore.ATOMSNAME[i] + "Ore";
+                               this.mod.apiBase.addAtomOres(
+                                               var1,
+                                               new Formula(this.mod.chemicalData.ATOMSLIST[i]),
+                                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
+                                               EnumOreSpawnFrequency.NORMAL);
+                               this.mod.apiBase.addAtomOresLanguage(var1, ChemiCraftCore.ATOMSNAMEJP[i] + "鉱石", "ja_JP");
+                       }
+               }
+
+               // ランタノイド鉱石
+               this.mod.apiBase.addAtomOres(
+                               "LanthanoidOre",
+                               new Formula("LaCePrNdPmSmEuGdTbDyHoErTmYbLu"),
+                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
+                               EnumOreSpawnFrequency.RARE);
+               // LaCePrNdPmSmEuGdTbDyHoErTmYbLu
+               this.mod.apiBase.addAtomOresLanguage("LanthanoidOre", "ランタノイド鉱石", "ja_JP");
+
+               // アクチノイド鉱石
+               this.mod.apiBase.addAtomOres(
+                               "ActinoidOre",
+                               new Formula("AcThPaUNpPuAmCmBkCfEsFmMdNoLr"),
+                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
+                               EnumOreSpawnFrequency.RARE);
+               // AcThPaUNpPuAmCmBkCfEsFmMdNoLr
+               this.mod.apiBase.addAtomOresLanguage("ActinoidOre", "アクチノイド鉱石", "ja_JP");
 
        }