OSDN Git Service

c5a5e018a43da216a7c9e8c8069a70c1b37958c1
[chemicraft/chemicraft.git] / common / pcc / chemicraft / base / ChemiCraftRegisterChemicalRecipe.java
1 package pcc.chemicraft.base;
2
3 import pcc.chemicraft.base.gen.EnumOreSpawnFrequency;
4 import pcc.chemicraft.core.ChemiCraftCore;
5 import pcc.chemicraft.util.AtomInfo;
6 import pcc.chemicraft.util.Formula;
7
8 public class ChemiCraftRegisterChemicalRecipe extends ChemiCraftBaseRegister
9 {
10
11         public ChemiCraftRegisterChemicalRecipe(ChemiCraftBase mod)
12         {
13                 super(mod);
14         }
15
16         @Override
17         public void start()
18         {
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                                 this.mod.apiBase.addAtomOres(
27                                                 ChemiCraftCore.ATOMSNAME[i],
28                                                 new Formula(this.mod.chemicalData.ATOMSLIST[i]),
29                                                 this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
30                                                 EnumOreSpawnFrequency.NORMAL);
31                                 this.mod.apiBase.addAtomOresLanguage(ChemiCraftCore.ATOMSNAME[i], ChemiCraftCore.ATOMSNAMEJP[i] + "鉱石", "ja_JP");
32                         }
33                 }
34
35                 // ランタノイド鉱石
36                 this.mod.apiBase.addAtomOres(
37                                 "Lanthanoid",
38                                 new Formula("LaCePrNdPmSmEuGdTbDyHoErTmYbLu"),
39                                 this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
40                                 EnumOreSpawnFrequency.RARE);
41                 // LaCePrNdPmSmEuGdTbDyHoErTmYbLu
42                 this.mod.apiBase.addAtomOresLanguage("Lanthanoid", "ランタノイド鉱石", "ja_JP");
43
44                 // アクチノイド鉱石
45                 this.mod.apiBase.addAtomOres(
46                                 "Actinoid",
47                                 new Formula("AcThPaUNpPuAmCmBkCfEsFmMdNoLr"),
48                                 this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
49                                 EnumOreSpawnFrequency.RARE);
50                 // AcThPaUNpPuAmCmBkCfEsFmMdNoLr
51                 this.mod.apiBase.addAtomOresLanguage("Actinoid", "アクチノイド鉱石", "ja_JP");
52
53         }
54
55 }