OSDN Git Service

修正・変更
[chemicraft/ChemiCraftNext.git] / common / pcc / chemicraft / base / ChemiCraftRegisterChemicalRecipe.java
1 package pcc.chemicraft.base;
2
3 import pcc.chemicraft.ChemiCraftData;
4 import pcc.chemicraft.base.gen.EnumOreSpawnFrequency;
5 import pcc.chemicraft.core.ChemiCraftCore;
6 import pcc.chemicraft.util.AtomInfo;
7 import pcc.chemicraft.util.Formula;
8
9 public class ChemiCraftRegisterChemicalRecipe extends ChemiCraftBaseRegister
10 {
11
12         public ChemiCraftRegisterChemicalRecipe(ChemiCraftBase mod)
13         {
14                 super(mod);
15         }
16
17         @Override
18         public void start()
19         {
20                 // 元素入手手段
21
22                 for (int i = 0; i < this.mod.chemicalData.ATOMSLIST.length; i++)
23                 {
24                         if (AtomInfo.isSolid(i + 1) && !AtomInfo.isLanthanoid(i + 1) && !AtomInfo.isActinoid(i + 1))
25                         {
26                                 String var1 = ChemiCraftCore.ATOMSNAME[i] + "Ore";
27                                 this.mod.apiBase.addAtomOres(
28                                                 var1,
29                                                 new Formula(this.mod.chemicalData.ATOMSLIST[i]),
30                                                 this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
31                                                 EnumOreSpawnFrequency.NORMAL);
32                                 this.mod.apiBase.addAtomOresLanguage(var1, ChemiCraftCore.ATOMSNAMEJP[i] + "鉱石", "ja_JP");
33                         }
34                 }
35
36                 // ランタノイド鉱石
37                 this.mod.apiBase.addAtomOres(
38                                 "LanthanoidOre",
39                                 new Formula("LaCePrNdPmSmEuGdTbDyHoErTmYbLu"),
40                                 this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
41                                 EnumOreSpawnFrequency.RARE);
42                 // LaCePrNdPmSmEuGdTbDyHoErTmYbLu
43                 this.mod.apiBase.addAtomOresLanguage("LanthanoidOre", "ランタノイド鉱石", "ja_JP");
44
45                 // アクチノイド鉱石
46                 this.mod.apiBase.addAtomOres(
47                                 "ActinoidOre",
48                                 new Formula("AcThPaUNpPuAmCmBkCfEsFmMdNoLr"),
49                                 this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
50                                 EnumOreSpawnFrequency.RARE);
51                 // AcThPaUNpPuAmCmBkCfEsFmMdNoLr
52                 this.mod.apiBase.addAtomOresLanguage("ActinoidOre", "アクチノイド鉱石", "ja_JP");
53
54         }
55
56 }