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 URANIUM = 91;\r
355 \r
356         public final static String HYDROGEN_ = "H";\r
357         public final static String HELIUM_ = "He";\r
358         public final static String LITHIUM_ = "Li";\r
359         public final static String BERYLLIUM_ = "Be";\r
360         public final static String BORON_ = "B";\r
361         public final static String CARBON_ = "C";\r
362         public final static String NITOROGEN_ = "N";\r
363         public final static String OXYGEN_ = "O";\r
364 \r
365 \r
366 }