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                 //鉱石郡
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                                 String var1 = ChemiCraftCore.ATOMSNAME[i] + "Ore";
28                                 this.mod.apiBase.addAtomOres(
29                                                 var1,
30                                                 new Formula(this.mod.chemicalData.ATOMSLIST[i]),
31                                                 this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
32                                                 EnumOreSpawnFrequency.NORMAL);
33                                 this.mod.apiBase.addAtomOresLanguage(var1, ChemiCraftCore.ATOMSNAMEJP[i] + "鉱石", "ja_JP");
34                         }
35                 }
36
37                 // ランタノイド鉱石
38                 this.mod.apiBase.addAtomOres(
39                                 "LanthanoidOre",
40                                 new Formula("LaCePrNdPmSmEuGdTbDyHoErTmYbLu"),
41                                 this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
42                                 EnumOreSpawnFrequency.RARE);
43                 // LaCePrNdPmSmEuGdTbDyHoErTmYbLu
44                 this.mod.apiBase.addAtomOresLanguage("LanthanoidOre", "ランタノイド鉱石", "ja_JP");
45
46                 // アクチノイド鉱石
47                 this.mod.apiBase.addAtomOres(
48                                 "ActinoidOre",
49                                 new Formula("AcThPaUNpPuAmCmBkCfEsFmMdNoLr"),
50                                 this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
51                                 EnumOreSpawnFrequency.RARE);
52                 // AcThPaUNpPuAmCmBkCfEsFmMdNoLr
53                 this.mod.apiBase.addAtomOresLanguage("ActinoidOre", "アクチノイド鉱石", "ja_JP");
54
55         }
56
57 }