OSDN Git Service

とりあえずコミット
[chemicraft/chemicraft.git] / common / chemicraft / ChemiCraft.java
1 package chemicraft;\r
2 \r
3 import net.minecraft.src.Block;\r
4 import net.minecraft.src.CreativeTabs;\r
5 import net.minecraft.src.Item;\r
6 import net.minecraft.src.ItemStack;\r
7 import net.minecraft.src.Material;\r
8 import net.minecraftforge.common.Configuration;\r
9 import net.minecraftforge.common.Property;\r
10 import chemicraft.block.BlockChemicalCombinationTable;\r
11 import chemicraft.block.BlockChemicalCraftingTable;\r
12 import chemicraft.block.BlockDecompositionTable;\r
13 import chemicraft.block.BlockToolAndWeaponCraftingTable;\r
14 import chemicraft.debug.CommandDeleteItem;\r
15 import chemicraft.debug.CommandGenDebugRoom;\r
16 import chemicraft.debug.CommandSetTile;\r
17 import chemicraft.item.ItemAtomGrenade;\r
18 import chemicraft.item.ItemAtoms;\r
19 import chemicraft.item.ItemCompounds;\r
20 import chemicraft.item.ItemGasCollectingBottle;\r
21 import chemicraft.system.CommonProxy;\r
22 import chemicraft.system.PacketHandler;\r
23 import chemicraft.tileentity.TileEntityChemicalCombinationTable;\r
24 import chemicraft.tileentity.TileEntityChemicalCraftingTable;\r
25 import chemicraft.tileentity.TileEntityDecompositionTable;\r
26 import chemicraft.tileentity.TileEntityToolAndWeaponCraftingTable;\r
27 import chemicraft.util.Auxiliary;\r
28 import chemicraft.util.Auxiliary.ArrayAuxiliary;\r
29 import chemicraft.util.Auxiliary.NameAuxiliary;\r
30 import chemicraft.util.CreativeTabAtoms;\r
31 import chemicraft.util.NBTRecipeGrenade;\r
32 import cpw.mods.fml.common.Mod;\r
33 import cpw.mods.fml.common.SidedProxy;\r
34 import cpw.mods.fml.common.event.FMLPostInitializationEvent;\r
35 import cpw.mods.fml.common.event.FMLPreInitializationEvent;\r
36 import cpw.mods.fml.common.event.FMLServerStartingEvent;\r
37 import cpw.mods.fml.common.network.NetworkMod;\r
38 import cpw.mods.fml.common.network.NetworkRegistry;\r
39 import cpw.mods.fml.common.registry.GameRegistry;\r
40 \r
41 /**\r
42  * ChemiCraft本体\r
43  *\r
44  * @author P.C.C.\r
45  *\r
46  */\r
47 @Mod(modid = "chemiCraft", name = "ChemiCraft", version = "beta")\r
48 // ID,名前,バージョン\r
49 @NetworkMod(clientSideRequired = true, serverSideRequired = false, versionBounds = "1.3.2", channels = "chemicraft", packetHandler = PacketHandler.class)\r
50 // クライアント、サーバー共に必要 1.3.2用\r
51 public class ChemiCraft {\r
52 \r
53         public final String[] atomsName = { "Hydrogen", "Helium", "Lithium", "Beryllium", "Boron", "Carbon", "Nitrogen", "Oxygen", "Fluorine", "Neon", "Sodium", "Magnesium", "Aluminium", "Silicon",\r
54                         "Phosphorus", "Sulfur", "Chlorine", "Argon", "Potassium", "Calcium", "Scandium", "Titanium", "Vanadium", "Chromium", "Manganese", "Iron", "Cobalt", "Nickel", "Copper", "Zinc", "Gallium",\r
55                         "Germanium", "Arsenic", "Selenium", "Bromine", "Krypton", "Rubidium", "Strontium", "Yttorium", "Zirconium", "Niobium", "Molybdenum", "Technetium", "Ruthenium", "Rhodium", "Palladium",\r
56                         "Silver", "Cadmium", "Indium", "Tin", "Antimony", "Tellurium", "Iodine", "Xenon", "Caesium", "Barium", "Lanthanum", "Cerium", "Praseodymium", "Neodymium", "Promethium", "Samarium",\r
57                         "Europium", "Gadolinium", "Terbium", "Dysprosium", "Holmium", "Erbium", "Thulium", "Ytterbium", "Lutetium", "Hafnium", "Tantalum", "Tungsten", "Rhenium", "Osmium", "Iridium", "Platinum",\r
58                         "Gold", "Mercury", "Thallium", "Lead", "Bismuth", "Polonium", "Astatine", "Radon", "Francium", "Radium", "Actinium", "Thorium", "Protactinium", "Uranium", "Neptunium", "Plutonium",\r
59                         "Americium", "Curium", "Berkelium", "Californium", "Einsteinium", "Fermium", "Mendelevium", "Nobelium", "Lawrencium", "Rutherfordium", "Dubnium", "Seaborgium", "Bohrium", "Hassium",\r
60                         "Meitnerium", "Darmstadtium", "Roentgenium", "Copernicium", "Ununtrium", "Ununquadium", "Ununpentium", "Ununhexium", "Ununseptium", "Ununoctium" };\r
61 \r
62         public final String[] atomsNameJP = { "水素", "ヘリウム", "リチウム", "ベリウム", "ホウ素", "炭素", "窒素", "酸素", "フッ素", "ネオン", "ナトリウム", "マグネシウム", "アルミニウム", "ケイ素", "リン", "硫黄", "塩素", "アルゴン", "カリウム", "カルシウム", "スカンジウム",\r
63                         "チタン", "バナジウム", "クロム", "マンガン", "鉄", "コバルト", "ニッケル", "銅", "亜鉛", "ガリウム", "ゲルマニウム", "ヒ素", "セレン", "臭素", "クリプトン", "ルビジウム", "ストロンチウム", "イットリウム", "ジルコニウム", "ニオブ", "モリブデン", "テクネチウム", "ルテニウム",\r
64                         "ロジウム", "パラジウム", "銀", "カドミウム", "インジウム", "スズ", "アンチモン", "テルル", "ヨウ素", "キセノン", "セシウム", "バリウム", "ランタン", "セリウム", "プラセオジム", "ネオジム", "プロメチウム", "サマリウム", "ユウロビウム", "ガドリニウム", "テルビウム", "ジスプロニウム",\r
65                         "ホルミウム", "エルビウム", "ツリウム", "イッテルビウム", "ルテチウム", "ハフニウム", "タンタル", "タングステン", "レニウム", "オスミウム", "イリジウム", "白金", "金", "水銀", "タリウム", "鉛", "ビスマス", "ポロニウム", "アスタチン", "ラドン", "フランシウム", "ラジウム",\r
66                         "アクチニウム", "トリウム", "プロトアクチウム", "ウラン", "ネプツニウム", "プルトニウム", "アメリシウム", "キュリウム", "バークリウム", "カルホルニウム", "アインスタイニウム", "フェルミウム", "メンデレビウム", "ノーベリウム", "ローレンシウム", "ラサホージウム", "ドブニウム", "シーボーギウム",\r
67                         "ボーリウム", "ハッシウム", "マイトネリウム", "ダームスタチウム", "レントゲニウム", "コペルニシウム", "ウンウントリウム", "ウンウンクアジウム", "ウンウンペンチウム", "ウンウンヘキシウム", "ウンウンセプチウム", "ウンウンオクチウム" };\r
68 \r
69         /**\r
70          * このmodのインスタンス\r
71          */\r
72         @Mod.Instance("chemiCraft")\r
73         public static ChemiCraft instance;\r
74 \r
75         /**\r
76          * ChemiCraftのProxy\r
77          */\r
78         @SidedProxy(clientSide = "chemicraft.client.ClientProxy", serverSide = "chemicraft.system.CommonProxy")\r
79         public static CommonProxy proxy;\r
80 \r
81         /**\r
82          * ChemiCraftのCreativeTab\r
83          */\r
84         public static final CreativeTabs creativeTab = new CreativeTabAtoms("ChemiCraft");\r
85 \r
86         /**\r
87          * ItemID\r
88          */\r
89         public int atomsID;\r
90         public int compoundsID;\r
91         public int gasCollectingBottleID;\r
92         public int atomGrenadeID;\r
93 \r
94         /**\r
95          * BlockID\r
96          */\r
97         public int decompositionTableID;\r
98         public int chemicalConbinationTableID;\r
99         public int toolAndWeaponCraftingTableID;\r
100         public int chemicalCraftingTableID;\r
101 \r
102         /**\r
103          * GUIID\r
104          */\r
105         public int guiDecompositionTableID;\r
106         public int guiChemicalCombinationTableID;\r
107         public int guiToolAndWeaponCraftingTableID;\r
108         public int guiChemicalCraftingTableID;\r
109 \r
110         /**\r
111          * Block型変数\r
112          */\r
113         public Block blockDecompositionTable;\r
114         public Block blockChemicalCombinationTable;\r
115         public Block blockToolAndWeaponCraftingTable;\r
116         public Block blockChemicalCraftingTable;\r
117 \r
118         /**\r
119          * Item型変数\r
120          */\r
121         public Item itemAtoms;\r
122         public Item itemCompounds;\r
123         public Item itemGasCollectingBottle;\r
124         public Item itemAtomGrenade;\r
125 \r
126         /**\r
127          * このmodで使用するTextureのパス\r
128          */\r
129         public String itemAtomsTexture = "/chemicraft/items/Atoms.png";\r
130         public String itemCompoundsTexture = "/chemicraft/items/Compounds.png";\r
131         public String itemTexture = "/chemicraft/items/items.png";\r
132         public String blockChemicalCraftingTableTexture = "/chemicraft/blocks/CCTable.png";\r
133         public String guiDecompositionTexture = "/chemicraft/guis/Decomposition.png";\r
134         public String guiChemicalCombinationTexture = "/chemicraft/guis/ChemicalCombination.png";\r
135         public String guiToolAndWeaponCraftingTexture = "/chemicraft/guis/ToolAndWeaponCrafting.png";\r
136         public String guiChemicalCraftingTexture = "/chemicraft/guis/MaterialCrafting.png";\r
137 \r
138         /**\r
139          * このmodに必要な補助クラスのインスタンス\r
140          */\r
141         public Auxiliary auxiliary = new Auxiliary();\r
142         public NameAuxiliary nameAuxiliary = new NameAuxiliary();\r
143         public ArrayAuxiliary arrayAuxiliary = new ArrayAuxiliary();\r
144 \r
145         private ChemiCraftAPI api = ChemiCraftAPI.instance;\r
146 \r
147         @Mod.PreInit\r
148         public void chemiPreLoadMethod(FMLPreInitializationEvent event) {\r
149                 Configuration cfg = new Configuration(event.getSuggestedConfigurationFile());\r
150                 cfg.load();\r
151 \r
152                 Property decompositionTableIDProp = cfg.getBlock("DecompositionTable", 2400);\r
153                 Property chemicalCombinationTableIDProp = cfg.getBlock("ChemicalCombinationID", 2401);\r
154                 Property toolAndWeaponCraftingTableIDProp = cfg.getBlock("ToolAndWeaponCraftingTableID", 2402);\r
155                 Property ChemicalCraftingTableIDProp = cfg.getBlock("ChemicalCraftingTableID", 2403);\r
156 \r
157                 Property atomsIDProp = cfg.getItem("AtomsID", 25000);\r
158                 Property compoundsIDProp = cfg.getItem("CompoundsID", 25001);\r
159                 Property gasCollectingBottleIDProp = cfg.getItem("gasCollectingBottleID", 25002);\r
160                 Property atomGrenadeIDProp = cfg.getItem("AtomGrenadeID", 25003);\r
161 \r
162                 Property guiDecompositionTableIDProp = cfg.get("GUI", "GUIChemicalCraftingTableID", 1000);\r
163                 Property guiChemicalCombinationTableIDProp = cfg.get("GUI", "GUIChemicalCombinationTableID", 1001);\r
164                 Property guiToolAndWeaponCraftingTableIDProp = cfg.get("GUI", "GUIToolAndWeaponCraftingTableID", 1002);\r
165                 Property guiChemicalCraftingTableIDProp = cfg.get("GUI", "GUIChemicalCraftingTableID", 1003);\r
166 \r
167 \r
168                 this.decompositionTableID = decompositionTableIDProp.getInt();\r
169                 this.chemicalConbinationTableID = chemicalCombinationTableIDProp.getInt();\r
170                 this.toolAndWeaponCraftingTableID = toolAndWeaponCraftingTableIDProp.getInt();\r
171                 this.chemicalCraftingTableID = ChemicalCraftingTableIDProp.getInt();\r
172                 this.atomsID = atomsIDProp.getInt();\r
173                 this.compoundsID = compoundsIDProp.getInt();\r
174                 this.gasCollectingBottleID = gasCollectingBottleIDProp.getInt();\r
175                 this.atomGrenadeID = atomGrenadeIDProp.getInt();\r
176                 this.guiDecompositionTableID = guiDecompositionTableIDProp.getInt();\r
177                 this.guiChemicalCombinationTableID = guiChemicalCombinationTableIDProp.getInt();\r
178                 this.guiToolAndWeaponCraftingTableID = guiToolAndWeaponCraftingTableIDProp.getInt();\r
179                 this.guiChemicalCraftingTableID = guiChemicalCraftingTableIDProp.getInt();\r
180 \r
181                 cfg.save();\r
182 \r
183                 // 描画関係の読み込み\r
184                 proxy.registerRenderInformation();\r
185         }\r
186 \r
187         @Mod.ServerStarting\r
188         public void serverStarting(FMLServerStartingEvent event){\r
189                 event.registerServerCommand(new CommandSetTile());\r
190                 event.registerServerCommand(new CommandDeleteItem());\r
191                 event.registerServerCommand(new CommandGenDebugRoom());\r
192         }\r
193 \r
194         @Mod.PostInit\r
195         public void chemiPostLoadMethod(FMLPostInitializationEvent event) {\r
196                 this.settingProcessing(event);\r
197                 this.apiProcessing(event);\r
198         }\r
199 \r
200         private void settingProcessing(FMLPostInitializationEvent event){\r
201 \r
202                 // Blockを追加します\r
203                 this.blockDecompositionTable = new BlockDecompositionTable(this.decompositionTableID, 0, Material.ground).setHardness(2.0F).setResistance(0.0F).setStepSound(Block.soundStoneFootstep).setBlockName("DecompositionTable");\r
204                 this.blockChemicalCombinationTable = new BlockChemicalCombinationTable(this.chemicalConbinationTableID, 0, Material.ground).setHardness(2.0F).setResistance(0.0F).setStepSound(Block.soundStoneFootstep).setBlockName("ChemicalCombinationTable");\r
205                 this.blockToolAndWeaponCraftingTable = new BlockToolAndWeaponCraftingTable(this.toolAndWeaponCraftingTableID, 0, Material.ground).setHardness(2.0F).setResistance(0.0F).setStepSound(Block.soundStoneFootstep).setBlockName("ToolAndWeaponCraftingTable");\r
206                 this.blockChemicalCraftingTable = new BlockChemicalCraftingTable(chemicalCraftingTableID, 0, Material.ground).setHardness(2.0F).setResistance(0.0F).setStepSound(Block.soundStoneFootstep).setBlockName("ChemicalCraftingTable");\r
207 \r
208 \r
209                 // Itemを追加します\r
210                 this.itemAtoms = new ItemAtoms(this.atomsID).setItemName("atoms");\r
211                 this.itemCompounds = new ItemCompounds(this.compoundsID).setItemName("compounds");\r
212                 this.itemGasCollectingBottle = new ItemGasCollectingBottle(this.gasCollectingBottleID).setItemName("gasCollectingBottle").setIconIndex(0);\r
213                 this.itemAtomGrenade = new ItemAtomGrenade(this.atomGrenadeID).setItemName("grenade").setIconIndex(1);\r
214 \r
215                 // BlockをMinecraftに登録します\r
216                 GameRegistry.registerBlock(this.blockDecompositionTable);\r
217                 GameRegistry.registerBlock(this.blockChemicalCombinationTable);\r
218                 GameRegistry.registerBlock(this.blockToolAndWeaponCraftingTable);\r
219                 GameRegistry.registerBlock(this.blockChemicalCraftingTable);\r
220 \r
221                 // Blockの名前を設定します\r
222                 this.nameAuxiliary.addName(this.blockDecompositionTable, "DecompositionTable");\r
223                 this.nameAuxiliary.addName(this.blockDecompositionTable, "ja_JP", "分解台");\r
224                 this.nameAuxiliary.addName(this.blockChemicalCombinationTable, "ChemicalCombinationTable");\r
225                 this.nameAuxiliary.addName(this.blockChemicalCombinationTable, "ja_JP", "化合台");\r
226                 this.nameAuxiliary.addName(blockToolAndWeaponCraftingTable, "ToolAndWeaponCraftingTable");\r
227                 this.nameAuxiliary.addName(blockToolAndWeaponCraftingTable, "ja_JP", "ツール&武器製作台");\r
228                 this.nameAuxiliary.addName(blockChemicalCraftingTable, "ChemicalCraftingTable");\r
229                 this.nameAuxiliary.addName(blockChemicalCraftingTable, "ja_JP", "素材製作台");\r
230 \r
231 \r
232                 // Itemの名前を設定します\r
233                 this.nameAuxiliary.addName(this.itemAtoms, atomsName);\r
234                 this.nameAuxiliary.addName(this.itemAtoms, "ja_JP", atomsNameJP);\r
235                 this.nameAuxiliary.addName(this.itemGasCollectingBottle, "GasCollectingBottle");\r
236                 this.nameAuxiliary.addName(this.itemGasCollectingBottle, "ja_JP", "集気瓶");\r
237                 this.nameAuxiliary.addName(this.itemAtomGrenade, "AtomGrenade");\r
238                 this.nameAuxiliary.addName(this.itemAtomGrenade, "元素手榴弾");\r
239 \r
240                 // TileEntityを追加します\r
241                 GameRegistry.registerTileEntity(TileEntityDecompositionTable.class, "DecompositionTable");\r
242                 GameRegistry.registerTileEntity(TileEntityChemicalCombinationTable.class, "TileEntityChemicalCombinationTable");\r
243                 GameRegistry.registerTileEntity(TileEntityToolAndWeaponCraftingTable.class, "TileEntityToolAndWeaponCraftingTable");\r
244                 GameRegistry.registerTileEntity(TileEntityChemicalCraftingTable.class, "TileEntityChemicalCraftingTable");\r
245 \r
246                 // GUIを追加します\r
247                 NetworkRegistry.instance().registerGuiHandler(instance, proxy);\r
248 \r
249                 //Textureをpreloadします\r
250                 proxy.registerTextures();\r
251 \r
252                 //化学作業台類のレシピを追加します\r
253                 GameRegistry.addRecipe(new ItemStack(this.blockDecompositionTable),\r
254                                 new Object[]{\r
255                         "XYX", "ZAZ", "ZZZ",\r
256                         Character.valueOf('X'), new ItemStack(Item.ingotIron),\r
257                         Character.valueOf('Y'), new ItemStack(Block.workbench),\r
258                         Character.valueOf('Z'), new ItemStack(Block.stone),\r
259                         Character.valueOf('A'), new ItemStack(Block.tnt),\r
260                 });\r
261                 GameRegistry.addRecipe(new ItemStack(this.blockChemicalCombinationTable),\r
262                                 new Object[]{\r
263                         "XYX", "ZAZ", "ZZZ",\r
264                         Character.valueOf('X'), new ItemStack(Item.ingotIron),\r
265                         Character.valueOf('Y'), new ItemStack(Block.workbench),\r
266                         Character.valueOf('Z'), new ItemStack(Block.stone),\r
267                         Character.valueOf('A'), new ItemStack(Block.obsidian),\r
268                 });\r
269                 GameRegistry.addRecipe(new ItemStack(this.blockToolAndWeaponCraftingTable),\r
270                                 new Object[]{\r
271                         "XYX", "ZAZ", "ZZZ",\r
272                         Character.valueOf('X'), new ItemStack(Item.ingotIron),\r
273                         Character.valueOf('Y'), new ItemStack(Block.workbench),\r
274                         Character.valueOf('Z'), new ItemStack(Block.stone),\r
275                         Character.valueOf('A'), new ItemStack(Item.pickaxeSteel),\r
276                 });\r
277                 GameRegistry.addRecipe(new ItemStack(this.blockChemicalCraftingTable),\r
278                                 new Object[]{\r
279                         "XYX", "ZAZ", "ZZZ",\r
280                         Character.valueOf('X'), new ItemStack(Item.ingotIron),\r
281                         Character.valueOf('Y'), new ItemStack(Block.workbench),\r
282                         Character.valueOf('Z'), new ItemStack(Block.stone),\r
283                         Character.valueOf('A'), new ItemStack(this.itemAtoms, 1, 0),\r
284                 });\r
285 \r
286                 //\r
287                 ChemiCraftAPI.instance.addDecompositionRecipe(new ItemStack(Block.dirt), new ItemStack[]{new ItemStack(Block.stone)});\r
288 \r
289                 // 化合物を追加します\r
290                 ChemiCraftAPI.instance.addLangCompound("ja_JP", "CarbonDioxide", "二酸化炭素");\r
291 \r
292                 // 化合物のレシピを追加します\r
293                 ChemiCraftAPI.instance.addChemicalCombinationRecipe(new ItemStack[]{new ItemStack(this.itemAtoms, 1, CARBON), new ItemStack(this.itemAtoms, 1, OXYGEN) }, new ItemStack(this.itemCompounds, 1, api.getDamageByName("CarbonDioxide")));\r
294 \r
295                 //手榴弾の追加\r
296                 ChemiCraftAPI.instance.addMaterialRecipe(new ItemStack[]{null, new ItemStack(Block.stone), null, new ItemStack(Block.stone), new ItemStack(Item.gunpowder), new ItemStack(Block.stone), null, new ItemStack(Block.stone), null}, new ItemStack(this.itemAtomGrenade, 16, 0), new NBTRecipeGrenade());\r
297 \r
298         }\r
299 \r
300         private void apiProcessing(FMLPostInitializationEvent event){\r
301                 // API用の処理\r
302                 this.nameAuxiliary.addName(itemCompounds, ChemiCraftAPI.instance.getCompoundsName().toArray());\r
303                 this.nameAuxiliary.addName(itemCompounds, "ja_JP", ChemiCraftAPI.instance.getCompoundsLangName().toArray());\r
304         }\r
305 \r
306         public final static int HYDROGEN = 0;\r
307         public final static int HELIUM = 1;\r
308         public final static int LITHIUM = 2;\r
309         public final static int BERYLLIUM = 3;\r
310         public final static int BORON = 4;\r
311         public final static int CARBON = 5;\r
312         public final static int NITROGEN = 6;\r
313         public final static int OXYGEN = 7;\r
314         public final static int FLUORINE = 8;\r
315         public final static int NEON = 9;\r
316         public final static int SODIUM = 10;\r
317         public final static int MAGNESIUM = 11;\r
318         public final static int ALMINIUM = 12;\r
319         public final static int SILICON = 13;\r
320         public final static int PHOSPHORUS = 14;\r
321         public final static int SULFUR = 15;\r
322         public final static int CHLORINE = 16;\r
323         public final static int ARGON = 17;\r
324         public final static int POTASSIUM = 18;\r
325         public final static int CALCIUM = 19;\r
326         public final static int SCANDIUM = 20;\r
327         public final static int TITANIUM = 21;\r
328         public final static int VANADIUM = 22;\r
329         public final static int CHROMIUM = 23;\r
330         public final static int MANGANESE = 24;\r
331         public final static int IRON = 25;\r
332         public final static int COBALT = 26;\r
333         public final static int NICKEL = 27;\r
334         public final static int COPPER = 28;\r
335         public final static int ZINC = 29;\r
336         public final static int GALLIUM = 30;\r
337         public final static int GERMANIUM = 31;\r
338         public final static int ARSENIC = 32;\r
339         public final static int SELENIUM = 33;\r
340         public final static int BROMINE = 34;\r
341         public final static int KRYPTON = 35;\r
342         public final static int RUBIDIUM = 36;\r
343         public final static int STRONTIUM = 37;\r
344         public final static int YTTORIUM = 38;\r
345         public final static int ZIRCONIUM = 39;\r
346         public final static int NIOBIUM = 40;\r
347         public final static int MOLYBDENUM = 41;\r
348         public final static int TECHNETIUM = 42;\r
349         public final static int RUTHENIUM = 43;\r
350         public final static int RHODIUM = 44;\r
351         public final static int PALLADIUM = 45;\r
352         public final static int SILVER = 46;\r
353         public final static int CADMIUM = 47;\r
354         public final static int INDIUM = 48;\r
355         public final static int TIN = 49;\r
356         public final static int ANTIMONY = 50;\r
357         public final static int TELLURIUM = 51;\r
358         public final static int IODINE = 52;\r
359         public final static int XENON = 53;\r
360         public final static int CAESIUM = 54;\r
361         public final static int BARIUM = 55;\r
362         public final static int LANTHANUM = 56;\r
363         public final static int CERIUM = 57;\r
364         public final static int PRASEODYMIUM = 58;\r
365         public final static int NEODYMIUM = 59;\r
366         public final static int PROMETHIUM = 60;\r
367         public final static int SAMARIUM = 61;\r
368         public final static int EUROPIUM = 62;\r
369         public final static int GADOLINIUM = 63;\r
370         public final static int TERBIUM = 64;\r
371         public final static int DYSPROSIUM = 65;\r
372         public final static int HOLMIUM = 66;\r
373         public final static int ERBIUM = 67;\r
374         public final static int THULIUM = 68;\r
375         public final static int YTTERBIUM = 69;\r
376         public final static int LUTETIUM = 70;\r
377         public final static int HAFNIUM = 71;\r
378         public final static int TANTALUM = 72;\r
379         public final static int TUNGSTEN = 73;\r
380         public final static int RHENIUM = 74;\r
381         public final static int OSMIUM = 75;\r
382         public final static int IRIDIUM = 76;\r
383         public final static int PLATINUM = 77;\r
384         public final static int GOLD = 78;\r
385         public final static int MERCURY = 79;\r
386         public final static int THALLIUM = 80;\r
387         public final static int LEAD = 81;\r
388         public final static int BISMUTH = 82;\r
389         public final static int POLONIUM = 83;\r
390         public final static int ASTATINE = 84;\r
391         public final static int RADON = 85;\r
392         public final static int FRANCIUM = 86;\r
393         public final static int RADIUM = 87;\r
394         public final static int ACTINIUM = 88;\r
395         public final static int THORIUM = 89;\r
396         public final static int PROTACTINIUM = 90;\r
397         public final static int URANIUM = 91;\r
398         public final static int NEPTUNIUM = 92;\r
399         public final static int PLUTONIUM = 93;\r
400         public final static int AMERICIUM = 94;\r
401         public final static int CURIUM = 95;\r
402         public final static int BERKELIUM = 96;\r
403         public final static int CALIFORNIUM = 97;\r
404         public final static int EINSTEINIUM = 98;\r
405         public final static int FERMIUM = 99;\r
406         public final static int MENDILEVIUM = 100;\r
407         public final static int NOBELIUM = 101;\r
408         public final static int LAWRENCIUM = 102;\r
409         public final static int RUTHERFORDIUM = 103;\r
410         public final static int DUBNIUM = 104;\r
411         public final static int SEABORGIUM = 105;\r
412         public final static int BOHRIUM = 106;\r
413         public final static int HASSIUM = 107;\r
414         public final static int MEITNERIUM = 108;\r
415         public final static int DARMSTADTIUM = 109;\r
416         public final static int ROENTGENIUM = 110;\r
417         public final static int COPERNICIUM = 111;\r
418         public final static int UNUNTRIUM = 112;\r
419         public final static int UNUNQUADIUM = 113;\r
420         public final static int UNUNPENTIUM = 114;\r
421         public final static int UNUNHEXIUM = 115;\r
422         public final static int UNUNSEPTIUM = 116;\r
423         public final static int UNUNOCTIUM = 117;\r
424 \r
425         public final static String HYDROGEN_ = "H";\r
426         public final static String HELIUM_ = "He";\r
427         public final static String LITHIUM_ = "Li";\r
428         public final static String BERYLLIUM_ = "Be";\r
429         public final static String BORON_ = "B";\r
430         public final static String CARBON_ = "C";\r
431         public final static String NITROGEN_ = "N";\r
432         public final static String OXYGEN_ = "O";\r
433         public final static String FLUORINE_ = "F";\r
434         public final static String NEON_ = "Ne";\r
435         public final static String SODIUM_ = "Na";\r
436         public final static String MAGNESIUM_ = "Mg";\r
437         public final static String ALMINIUM_ = "Al";\r
438         public final static String SILICON_ = "Si";\r
439         public final static String PHOSPHORUS_ = "P";\r
440         public final static String SULFUR_ = "S";\r
441         public final static String CHLORINE_ = "Cl";\r
442         public final static String ARGON_ = "Ar";\r
443         public final static String POTASSIUM_ = "K";\r
444         public final static String CALCIUM_ = "Ca";\r
445         public final static String SCANDIUM_ = "Sc";\r
446         public final static String TITANIUM_ = "Ti";\r
447         public final static String VANADIUM_ = "V";\r
448         public final static String CHROMIUM_ = "Cr";\r
449         public final static String MANGANESE_ = "Mn";\r
450         public final static String IRON_ = "Fe";\r
451         public final static String COBALT_ = "Co";\r
452         public final static String NICKEL_ = "Ni";\r
453         public final static String COPPER_ = "Cu";\r
454         public final static String ZINC_ = "Zn";\r
455         public final static String GALLIUM_ = "Ga";\r
456         public final static String GERMANIUM_ = "Ge";\r
457         public final static String ARSENIC_ = "As";\r
458         public final static String SELENIUM_ = "Se";\r
459         public final static String BROMINE_ = "Br";\r
460         public final static String KRYPTON_ = "Kr";\r
461         public final static String RUBIDIUM_ = "Rb";\r
462         public final static String STRONTIUM_ = "Sr";\r
463         public final static String YTTORIUM_ = "Y";\r
464         public final static String ZIRCONIUM_ = "Zr";\r
465         public final static String NIOBIUM_ = "Nb";\r
466         public final static String MOLYBDENUM_ = "Mo";\r
467         public final static String TECHNETIUM_ = "Tc";\r
468         public final static String RUTHENIUM_ = "Ru";\r
469         public final static String RHODIUM_ = "Rh";\r
470         public final static String PALLADIUM_ = "Pd";\r
471         public final static String SILVER_ = "Ag";\r
472         public final static String CADMIUM_ = "Cd";\r
473         public final static String INDIUM_ = "In";\r
474         public final static String TIN_ = "Sn";\r
475         public final static String ANTIMONY_ = "Sb";\r
476         public final static String TELLURIUM_ = "Te";\r
477         public final static String IODINE_ = "I";\r
478         public final static String XENON_ = "Xe";\r
479         public final static String CAESIUM_ = "Cs";\r
480         public final static String BARIUM_ = "Ba";\r
481         public final static String LANTHANUM_ = "La";\r
482         public final static String CERIUM_ = "Ce";\r
483         public final static String PRASEODYMIUM_ = "Pr";\r
484         public final static String NEODYMIUM_ = "Nd";\r
485         public final static String PROMETHIUM_ = "Pm";\r
486         public final static String SAMARIUM_ = "Sm";\r
487         public final static String EUROPIUM_ = "Eu";\r
488         public final static String GADOLINIUM_ = "Gd";\r
489         public final static String TERBIUM_ = "Tb";\r
490         public final static String DYSPROSIUM_ = "Dy";\r
491         public final static String HOLMIUM_ = "Ho";\r
492         public final static String ERBIUM_ = "Er";\r
493         public final static String THULIUM_ = "Tm";\r
494         public final static String YTTERBIUM_ = "Yb";\r
495         public final static String LUTETIUM_ = "Lu";\r
496         public final static String HAFNIUM_ = "Hf";\r
497         public final static String TANTALUM_ = "Ta";\r
498         public final static String TUNGSTEN_ = "W";\r
499         public final static String RHENIUM_ = "Re";\r
500         public final static String OSMIUM_ = "Os";\r
501         public final static String IRIDIUM_ = "Ir";\r
502         public final static String PLATINUM_ = "Pt";\r
503         public final static String GOLD_ = "Au";\r
504         public final static String MERCURY_ = "Hg";\r
505         public final static String THALLIUM_ = "Tl";\r
506         public final static String LEAD_ = "Pb";\r
507         public final static String BISMUTH_ = "Bi";\r
508         public final static String POLONIUM_ = "Po";\r
509         public final static String ASTATINE_ = "At";\r
510         public final static String RADON_ = "Rn";\r
511         public final static String FRANCIUM_ = "Fr";\r
512         public final static String RADIUM_ = "Ra";\r
513         public final static String ACTINIUM_ = "Ac";\r
514         public final static String THORIUM_ = "Th";\r
515         public final static String PROTACTINIUM_ = "Pa";\r
516         public final static String URANIUM_ = "U";\r
517         public final static String NEPTUNIUM_ = "Np";\r
518         public final static String PLUTONIUM_ = "Pu";\r
519         public final static String AMERICIUM_ = "Am";\r
520         public final static String CURIUM_ = "Cm";\r
521         public final static String BERKELIUM_ = "Bk";\r
522         public final static String CALIFORNIUM_ = "Cf";\r
523         public final static String EINSTEINIUM_ = "Es";\r
524         public final static String FERMIUM_ = "Fm";\r
525         public final static String MENDILEVIUM_ = "Md";\r
526         public final static String NOBELIUM_ = "No";\r
527         public final static String LAWRENCIUM_ = "Lr";\r
528         public final static String RUTHERFORDIUM_ = "Rf";\r
529         public final static String DUBNIUM_ = "Db";\r
530         public final static String SEABORGIUM_ = "Sg";\r
531         public final static String BOHRIUM_ = "Bh";\r
532         public final static String HASSIUM_ = "Hs";\r
533         public final static String MEITNERIUM_ = "Mt";\r
534         public final static String DARMSTADTIUM_ = "Ds";\r
535         public final static String ROENTGENIUM_ = "Rg";\r
536         public final static String COPERNICIUM_ = "Cn";\r
537         public final static String UNUNTRIUM_ = "Uut";\r
538         public final static String UNUNQUADIUM_ = "Uuq";\r
539         public final static String UNUNPENTIUM_ = "Uup";\r
540         public final static String UNUNHEXIUM_ = "Uuh";\r
541         public final static String UNUNSEPTIUM_ = "Uus";\r
542         public final static String UNUNOCTIUM_ = "Uuo";\r
543 \r
544         public final static String[] atomsList = {\r
545                 "H","He","Li","Be","B","C","N","O","F","Ne",\r
546                 "Na","Mg","Al","Si","P","S","Cl","Ar","K","Ca",\r
547                 "Sc","Ti","V","Cr","Mn","Fe","Co","Ni","Cu","Zn",\r
548                 "Ga","Ge","As","Se","Br","Kr","Rb","Sr","Y","Zr",\r
549                 "Nb","Mo","Tc","Ru","Rh","Pd","Ag","Cd","In","Sn",\r
550                 "Sb","Te","I","Xe","Cs","Ba","La","Ce","Pr","Pm",\r
551                 "Sm","Eu","Gd","Tb","Dy","Ho","Er","Tm","Yb","Lu",\r
552                 "Hf","Ta","W","Re","Os","Ir","Pt","Au","Hg","Tl",\r
553                 "Pb","Bi","Po","At","Rn","Fr","Ra","Ac","Th","Pa",\r
554                 "U","Np","Pu","Am","Cm","Bk","Cf","Es","Fm","Md",\r
555                 "No","Lr","Rf","Db","Sg","Bh","Hs","Mt","Ds","Rg",\r
556                 "Cn","Uut","Uuq","Uup","Uuh","Uus","Uuo"\r
557         };\r
558 \r
559 }