OSDN Git Service

9d895a967c3ed9ed5ec02b499838affc8c24d888
[chemicraft/chemicraft.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                 // 鉱石群
23                 for (int i = 0; i < this.mod.chemicalData.ATOMSLIST.length; i++)
24                 {
25                         if (AtomInfo.isSolid(i + 1) && !AtomInfo.isLanthanoid(i + 1) && !AtomInfo.isActinoid(i + 1))
26                         {
27                                 this.mod.apiBase.addAtomOres(
28                                                 ChemiCraftCore.ATOMSNAME[i],
29                                                 new Formula(this.mod.chemicalData.ATOMSLIST[i]),
30                                                 this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
31                                                 EnumOreSpawnFrequency.NORMAL);
32                                 this.mod.apiBase.addAtomOresLanguage(ChemiCraftCore.ATOMSNAME[i], ChemiCraftCore.ATOMSNAMEJP[i] + "鉱石", "ja_JP");
33                         }
34                 }
35
36                 // ランタノイド鉱石
37                 this.mod.apiBase.addAtomOres(
38                                 "Lanthanoid",
39                                 new Formula("LaCePrNdPmSmEuGdTbDyHoErTmYbLu"),
40                                 this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
41                                 EnumOreSpawnFrequency.RARE);
42                 // LaCePrNdPmSmEuGdTbDyHoErTmYbLu
43                 this.mod.apiBase.addAtomOresLanguage("Lanthanoid", "ランタノイド鉱石", "ja_JP");
44
45                 // アクチノイド鉱石
46                 this.mod.apiBase.addAtomOres(
47                                 "Actinoid",
48                                 new Formula("AcThPaUNpPuAmCmBkCfEsFmMdNoLr"),
49                                 this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
50                                 EnumOreSpawnFrequency.RARE);
51                 // AcThPaUNpPuAmCmBkCfEsFmMdNoLr
52                 this.mod.apiBase.addAtomOresLanguage("Actinoid", "アクチノイド鉱石", "ja_JP");
53
54         }
55
56 }