OSDN Git Service

修正・変更
[chemicraft/chemicraft.git] / common / pcc / chemicraft / ChemiCraft.java
1 package pcc.chemicraft;
2
3 import pcc.chemicraft.block.BlockChemicalCombinationTable;
4 import pcc.chemicraft.block.BlockChemicalCraftingTable;
5 import pcc.chemicraft.block.BlockElectrolysisTable;
6 import pcc.chemicraft.block.BlockPyrolysisTable;
7 import pcc.chemicraft.block.BlockToolAndWeaponCraftingTable;
8 import pcc.chemicraft.compounds.CompoundWater;
9 import pcc.chemicraft.debug.CommandDeleteItem;
10 import pcc.chemicraft.debug.CommandGenDebugRoom;
11 import pcc.chemicraft.debug.CommandSetTile;
12 import pcc.chemicraft.gen.WorldGenAtomsOre;
13 import pcc.chemicraft.item.ItemAtoms;
14 import pcc.chemicraft.item.ItemAtomsGrenade;
15 import pcc.chemicraft.item.ItemCompounds;
16 import pcc.chemicraft.item.ItemGasCollectingBottle;
17 import pcc.chemicraft.system.CommonProxy;
18 import pcc.chemicraft.system.PacketHandler;
19 import pcc.chemicraft.tileentity.TileEntityChemicalCombinationTable;
20 import pcc.chemicraft.tileentity.TileEntityChemicalCraftingTable;
21 import pcc.chemicraft.tileentity.TileEntityElectrolysisTable;
22 import pcc.chemicraft.tileentity.TileEntityPyrolysisTable;
23 import pcc.chemicraft.tileentity.TileEntityToolAndWeaponCraftingTable;
24 import pcc.chemicraft.util.Auxiliary;
25 import pcc.chemicraft.util.CreativeTabAtoms;
26 import pcc.chemicraft.util.NBTRecipeGrenade;
27 import pcc.chemicraft.util.WorldProviderChemical;
28 import pcc.chemicraft.util.Auxiliary.ArrayAuxiliary;
29 import pcc.chemicraft.util.Auxiliary.NameAuxiliary;
30 import net.minecraft.block.Block;
31 import net.minecraft.block.material.Material;
32 import net.minecraft.creativetab.CreativeTabs;
33 import net.minecraft.item.Item;
34 import net.minecraft.item.ItemStack;
35 import net.minecraftforge.common.BiomeManager;
36 import net.minecraftforge.common.Configuration;
37 import net.minecraftforge.common.DimensionManager;
38 import net.minecraftforge.common.Property;
39 import cpw.mods.fml.common.Mod;
40 import cpw.mods.fml.common.SidedProxy;
41 import cpw.mods.fml.common.event.FMLPostInitializationEvent;
42 import cpw.mods.fml.common.event.FMLPreInitializationEvent;
43 import cpw.mods.fml.common.event.FMLServerStartingEvent;
44 import cpw.mods.fml.common.network.NetworkMod;
45 import cpw.mods.fml.common.network.NetworkRegistry;
46 import cpw.mods.fml.common.registry.GameRegistry;
47
48 /**
49  * ChemiCraft本体
50  * @author P.C.C.
51  *
52  */
53 @Mod(modid = "chemiCraft", name = "ChemiCraft", version = "beta")
54 @NetworkMod(clientSideRequired = true, serverSideRequired = true, versionBounds = "1.4.6", channels = "chemicraft", packetHandler = PacketHandler.class)
55 public class ChemiCraft {
56
57         public static final String[] ATOMSNAME = {
58                 "Hydrogen", "Helium", "Lithium", "Beryllium", "Boron", "Carbon", "Nitrogen", "Oxygen", "Fluorine", "Neon", "Sodium", "Magnesium", "Aluminium", "Silicon",
59                 "Phosphorus", "Sulfur", "Chlorine", "Argon", "Potassium", "Calcium", "Scandium", "Titanium", "Vanadium", "Chromium", "Manganese", "Iron", "Cobalt", "Nickel", "Copper", "Zinc", "Gallium",
60                 "Germanium", "Arsenic", "Selenium", "Bromine", "Krypton", "Rubidium", "Strontium", "Yttorium", "Zirconium", "Niobium", "Molybdenum", "Technetium", "Ruthenium", "Rhodium", "Palladium",
61                 "Silver", "Cadmium", "Indium", "Tin", "Antimony", "Tellurium", "Iodine", "Xenon", "Caesium", "Barium", "Lanthanum", "Cerium", "Praseodymium", "Neodymium", "Promethium", "Samarium",
62                 "Europium", "Gadolinium", "Terbium", "Dysprosium", "Holmium", "Erbium", "Thulium", "Ytterbium", "Lutetium", "Hafnium", "Tantalum", "Tungsten", "Rhenium", "Osmium", "Iridium", "Platinum",
63                 "Gold", "Mercury", "Thallium", "Lead", "Bismuth", "Polonium", "Astatine", "Radon", "Francium", "Radium", "Actinium", "Thorium", "Protactinium", "Uranium", "Neptunium", "Plutonium",
64                 "Americium", "Curium", "Berkelium", "Californium", "Einsteinium", "Fermium", "Mendelevium", "Nobelium", "Lawrencium", "Rutherfordium", "Dubnium", "Seaborgium", "Bohrium", "Hassium",
65                 "Meitnerium", "Darmstadtium", "Roentgenium", "Copernicium", "Ununtrium", "Ununquadium", "Ununpentium", "Ununhexium", "Ununseptium", "Ununoctium" };
66
67         public static final String[] ATOMSNAMEJP = {
68                 "水素", "ヘリウム", "リチウム", "ベリウム", "ホウ素", "炭素", "窒素", "酸素", "フッ素", "ネオン", "ナトリウム", "マグネシウム", "アルミニウム", "ケイ素", "リン", "硫黄", "塩素", "アルゴン", "カリウム", "カルシウム", "スカンジウム",
69                 "チタン", "バナジウム", "クロム", "マンガン", "鉄", "コバルト", "ニッケル", "銅", "亜鉛", "ガリウム", "ゲルマニウム", "ヒ素", "セレン", "臭素", "クリプトン", "ルビジウム", "ストロンチウム", "イットリウム", "ジルコニウム", "ニオブ", "モリブデン", "テクネチウム", "ルテニウム",
70                 "ロジウム", "パラジウム", "銀", "カドミウム", "インジウム", "スズ", "アンチモン", "テルル", "ヨウ素", "キセノン", "セシウム", "バリウム", "ランタン", "セリウム", "プラセオジム", "ネオジム", "プロメチウム", "サマリウム", "ユウロビウム", "ガドリニウム", "テルビウム", "ジスプロニウム",
71                 "ホルミウム", "エルビウム", "ツリウム", "イッテルビウム", "ルテチウム", "ハフニウム", "タンタル", "タングステン", "レニウム", "オスミウム", "イリジウム", "白金", "金", "水銀", "タリウム", "鉛", "ビスマス", "ポロニウム", "アスタチン", "ラドン", "フランシウム", "ラジウム",
72                 "アクチニウム", "トリウム", "プロトアクチウム", "ウラン", "ネプツニウム", "プルトニウム", "アメリシウム", "キュリウム", "バークリウム", "カルホルニウム", "アインスタイニウム", "フェルミウム", "メンデレビウム", "ノーベリウム", "ローレンシウム", "ラサホージウム", "ドブニウム", "シーボーギウム",
73                 "ボーリウム", "ハッシウム", "マイトネリウム", "ダームスタチウム", "レントゲニウム", "コペルニシウム", "ウンウントリウム", "ウンウンクアジウム", "ウンウンペンチウム", "ウンウンヘキシウム", "ウンウンセプチウム", "ウンウンオクチウム" };
74
75         /**
76          * このmodのインスタンス
77          */
78         @Mod.Instance("chemiCraft")
79         public static ChemiCraft instance;
80
81         /**
82          * ChemiCraftのProxy.
83          */
84         @SidedProxy(clientSide = "pcc.chemicraft.client.ClientProxy", serverSide = "pcc.chemicraft.system.CommonProxy")
85         public static CommonProxy proxy;
86
87         /**
88          * ChemiCraftのCreativeTab.
89          */
90         public static final CreativeTabs creativeTab = new CreativeTabAtoms("ChemiCraft");
91
92         /**
93          * ItemID.
94          */
95         public int atomsID;
96         public int compoundsID;
97         public int gasCollectingBottleID;
98         public int atomGrenadeID;
99
100         /**
101          * BlockID.
102          */
103         public int pyrolysisTableID;
104         public int electrolysisTableID;
105         public int chemicalConbinationTableID;
106         public int toolAndWeaponCraftingTableID;
107         public int chemicalCraftingTableID;
108
109         /**
110          * GUIID.
111          */
112         public int guiPyrolysisTableID;
113         public int guiElectrolysisTableID;
114         public int guiChemicalCombinationTableID;
115         public int guiToolAndWeaponCraftingTableID;
116         public int guiChemicalCraftingTableID;
117
118         /**
119          * Block型変数.
120          */
121         public Block blockPyrolysisTable;
122         public Block blockElectrolysisTable;
123         public Block blockChemicalCombinationTable;
124         public Block blockToolAndWeaponCraftingTable;
125         public Block blockChemicalCraftingTable;
126
127         /**
128          * Item型変数.
129          */
130         public Item itemAtoms;
131         public Item itemCompounds;
132         public Item itemGasCollectingBottle;
133         public Item itemAtomGrenade;
134
135         /**
136          * このmodで使用するTextureのパス.
137          */
138         public final String ITEMATOMSTEXTURE = "/pcc/chemicraft/items/Atoms.png";
139         public final String ITEMCOMPOUNDSTEXTURE = "/pcc/chemicraft/items/Compounds.png";
140         public final String ITEMTEXTURE = "/pcc/chemicraft/items/items.png";
141         public final String BLOCKCHEMICALCRAFTINGTABLETEXTURE = "/pcc/chemicraft/blocks/cctable.png";
142         public final String GUIPYROLYSISTEXTURE = "/pcc/chemicraft/guis/Pyrolysis.png";
143         public final String GUIELECTROLYSISTEXTURE = "/pcc/chemicraft/guis/Electrolysis.png";
144         public final String GUICHEMICALCOMBINATIONTEXTURE = "/pcc/chemicraft/guis/ChemicalCombination.png";
145         public final String GUITOOLANDWEAPONCRAFTINGTEXTURE = "/pcc/chemicraft/guis/ToolAndWeaponCrafting.png";
146         public final String GUICHEMICALCRAFTINGTEXTURE = "/pcc/chemicraft/guis/MaterialCrafting.png";
147
148         /**
149          * このmodに必要な補助クラスのインスタンス.
150          */
151         public Auxiliary auxiliary = new Auxiliary();
152         public NameAuxiliary nameAuxiliary = new NameAuxiliary();
153         public ArrayAuxiliary arrayAuxiliary = new ArrayAuxiliary();
154
155         private ChemiCraftAPI api = ChemiCraftAPI.instance();
156         private ChemiCraftData chemicalData = new ChemiCraftData();
157
158         @Mod.PreInit
159         public void chemiPreLoadMethod(final FMLPreInitializationEvent event) {
160                 Configuration cfg = new Configuration(event.getSuggestedConfigurationFile());
161                 cfg.load();
162
163                 Property pyrolysisTableIDProp = cfg.getBlock("PyrolysisTable", 2400);
164                 Property electrolysisTableIDProp = cfg.getBlock("ElectrolysisTable", 2401);
165                 Property chemicalCombinationTableIDProp = cfg.getBlock("ChemicalCombinationID", 2402);
166                 Property toolAndWeaponCraftingTableIDProp = cfg.getBlock("ToolAndWeaponCraftingTableID", 2403);
167                 Property chemicalCraftingTableIDProp = cfg.getBlock("ChemicalCraftingTableID", 2404);
168
169                 Property atomsIDProp = cfg.getItem("AtomsID", 25000);
170                 Property compoundsIDProp = cfg.getItem("CompoundsID", 25001);
171                 Property gasCollectingBottleIDProp = cfg.getItem("gasCollectingBottleID", 25002);
172                 Property atomGrenadeIDProp = cfg.getItem("AtomGrenadeID", 25003);
173
174                 Property guiPyrolysisTableIDProp = cfg.get("GUI", "GUIPyrolysisID", 1000);
175                 Property guiElectrolysisTableIDProp = cfg.get("GUI", "GUIElectrolysisTableIDProp", 1001);
176                 Property guiChemicalCombinationTableIDProp = cfg.get("GUI", "GUIChemicalCombinationTableID", 1002);
177                 Property guiToolAndWeaponCraftingTableIDProp = cfg.get("GUI", "GUIToolAndWeaponCraftingTableID", 1003);
178                 Property guiChemicalCraftingTableIDProp = cfg.get("GUI", "GUIChemicalCraftingTableID", 1004);
179
180
181                 this.pyrolysisTableID = pyrolysisTableIDProp.getInt();
182                 this.electrolysisTableID = electrolysisTableIDProp.getInt();
183                 this.chemicalConbinationTableID = chemicalCombinationTableIDProp.getInt();
184                 this.toolAndWeaponCraftingTableID = toolAndWeaponCraftingTableIDProp.getInt();
185                 this.chemicalCraftingTableID = chemicalCraftingTableIDProp.getInt();
186                 this.atomsID = atomsIDProp.getInt();
187                 this.compoundsID = compoundsIDProp.getInt();
188                 this.gasCollectingBottleID = gasCollectingBottleIDProp.getInt();
189                 this.atomGrenadeID = atomGrenadeIDProp.getInt();
190                 this.guiPyrolysisTableID = guiPyrolysisTableIDProp.getInt();
191                 this.guiElectrolysisTableID = guiElectrolysisTableIDProp.getInt();
192                 this.guiChemicalCombinationTableID = guiChemicalCombinationTableIDProp.getInt();
193                 this.guiToolAndWeaponCraftingTableID = guiToolAndWeaponCraftingTableIDProp.getInt();
194                 this.guiChemicalCraftingTableID = guiChemicalCraftingTableIDProp.getInt();
195
196                 cfg.save();
197         }
198
199         @Mod.ServerStarting
200         public void serverStarting(final FMLServerStartingEvent event) {
201                 event.registerServerCommand(new CommandSetTile());
202                 event.registerServerCommand(new CommandDeleteItem());
203                 event.registerServerCommand(new CommandGenDebugRoom());
204         }
205
206         @Mod.PostInit
207         public void chemiPostLoadMethod(final FMLPostInitializationEvent event) {
208                 this.settingProcessing(event);
209                 this.apiProcessing(event);
210                 this.debug(event);
211         }
212
213         private void settingProcessing(final FMLPostInitializationEvent event) {
214
215                 // Blockを追加します
216                 this.blockPyrolysisTable = new BlockPyrolysisTable(this.pyrolysisTableID, 0, Material.ground).
217                                 setHardness(2.0F).
218                                 setResistance(0.0F).
219                                 setStepSound(Block.soundStoneFootstep).
220                                 setBlockName("PyrolysisTable");
221                 this.blockElectrolysisTable = new BlockElectrolysisTable(this.electrolysisTableID, 1, Material.ground).
222                                 setHardness(2.0F).
223                                 setResistance(0.0F).
224                                 setStepSound(Block.soundStoneFootstep).
225                                 setBlockName("ElectrolysisTable");
226                 this.blockChemicalCombinationTable = new BlockChemicalCombinationTable(this.chemicalConbinationTableID, 2, Material.ground).
227                                 setHardness(2.0F).
228                                 setResistance(0.0F).
229                                 setStepSound(Block.soundStoneFootstep).
230                                 setBlockName("ChemicalCombinationTable");
231                 this.blockToolAndWeaponCraftingTable = new BlockToolAndWeaponCraftingTable(this.toolAndWeaponCraftingTableID, 3, Material.ground).
232                                 setHardness(2.0F).
233                                 setResistance(0.0F).
234                                 setStepSound(Block.soundStoneFootstep).
235                                 setBlockName("ToolAndWeaponCraftingTable");
236                 this.blockChemicalCraftingTable = new BlockChemicalCraftingTable(chemicalCraftingTableID, 4, Material.ground).
237                                 setHardness(2.0F).
238                                 setResistance(0.0F).
239                                 setStepSound(Block.soundStoneFootstep).
240                                 setBlockName("ChemicalCraftingTable");
241
242                 // Itemを追加します
243                 this.itemAtoms = new ItemAtoms(this.atomsID).setItemName("atoms");
244                 this.itemCompounds = new ItemCompounds(this.compoundsID).setItemName("compounds");
245                 this.itemGasCollectingBottle = new ItemGasCollectingBottle(this.gasCollectingBottleID).setItemName("gasCollectingBottle").setIconIndex(0);
246                 this.itemAtomGrenade = new ItemAtomsGrenade(this.atomGrenadeID).setItemName("grenade").setIconIndex(1);
247
248                 // BlockをMinecraftに登録します
249                 GameRegistry.registerBlock(this.blockPyrolysisTable, "BlockPyrolysisTable");
250                 GameRegistry.registerBlock(this.blockElectrolysisTable, "ElectrolysisTable");
251                 GameRegistry.registerBlock(this.blockChemicalCombinationTable, "BlockChemicalCombinationTable");
252                 GameRegistry.registerBlock(this.blockToolAndWeaponCraftingTable, "BlockToolAndWeaponCraftingTable");
253                 GameRegistry.registerBlock(this.blockChemicalCraftingTable, "BlockMaterialCraftingTable");
254
255                 // Blockの名前を設定します
256                 this.nameAuxiliary.addName(this.blockPyrolysisTable, "PyrolysisTable");
257                 this.nameAuxiliary.addName(this.blockPyrolysisTable, "ja_JP", "熱分解台");
258                 this.nameAuxiliary.addName(this.blockElectrolysisTable, "ElectrolysisTable");
259                 this.nameAuxiliary.addName(this.blockElectrolysisTable, "ja_JP", "電気分解台");
260                 this.nameAuxiliary.addName(this.blockChemicalCombinationTable, "ChemicalCombinationTable");
261                 this.nameAuxiliary.addName(this.blockChemicalCombinationTable, "ja_JP", "化合台");
262                 this.nameAuxiliary.addName(blockToolAndWeaponCraftingTable, "ToolAndWeaponCraftingTable");
263                 this.nameAuxiliary.addName(blockToolAndWeaponCraftingTable, "ja_JP", "ツール&武器製作台");
264                 this.nameAuxiliary.addName(blockChemicalCraftingTable, "ChemicalCraftingTable");
265                 this.nameAuxiliary.addName(blockChemicalCraftingTable, "ja_JP", "素材製作台");
266
267                 // Itemの名前を設定します
268                 this.nameAuxiliary.addName(this.itemAtoms, ATOMSNAME);
269                 this.nameAuxiliary.addName(this.itemAtoms, "ja_JP", ATOMSNAMEJP);
270                 this.nameAuxiliary.addName(this.itemGasCollectingBottle, "GasCollectingBottle");
271                 this.nameAuxiliary.addName(this.itemGasCollectingBottle, "ja_JP", "集気瓶");
272                 this.nameAuxiliary.addName(this.itemAtomGrenade, "AtomGrenade");
273                 this.nameAuxiliary.addName(this.itemAtomGrenade, "元素手榴弾");
274
275                 // TileEntityを追加します
276                 GameRegistry.registerTileEntity(TileEntityPyrolysisTable.class, "TileEntityPyrolysisTable");
277                 GameRegistry.registerTileEntity(TileEntityElectrolysisTable.class, "TileEntityElectrolysisTable");
278                 GameRegistry.registerTileEntity(TileEntityChemicalCombinationTable.class, "TileEntityChemicalCombinationTable");
279                 GameRegistry.registerTileEntity(TileEntityToolAndWeaponCraftingTable.class, "TileEntityToolAndWeaponCraftingTable");
280                 GameRegistry.registerTileEntity(TileEntityChemicalCraftingTable.class, "TileEntityChemicalCraftingTable");
281
282                 // GUIを追加します
283                 NetworkRegistry.instance().registerGuiHandler(instance, proxy);
284
285                 // 描画関係の読み込み
286                 proxy.registerRenderInformation();
287
288                 //化学作業台類のレシピを追加します
289                 GameRegistry.addRecipe(new ItemStack(this.blockElectrolysisTable),
290                                 new Object[]{
291                         "XYX", "ZAZ", "ZZZ",
292                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
293                         Character.valueOf('Y'), new ItemStack(Block.workbench),
294                         Character.valueOf('Z'), new ItemStack(Block.stone),
295                         Character.valueOf('A'), new ItemStack(Block.tnt),
296                 });
297                 GameRegistry.addRecipe(new ItemStack(this.blockPyrolysisTable),
298                                 new Object[]{
299                         "XYX", "ZAZ", "ZZZ",
300                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
301                         Character.valueOf('Y'), new ItemStack(Block.workbench),
302                         Character.valueOf('Z'), new ItemStack(Block.stone),
303                         Character.valueOf('A'), new ItemStack(Item.bucketLava),
304                 });
305                 GameRegistry.addRecipe(new ItemStack(this.blockChemicalCombinationTable),
306                                 new Object[]{
307                         "XYX", "ZAZ", "ZZZ",
308                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
309                         Character.valueOf('Y'), new ItemStack(Block.workbench),
310                         Character.valueOf('Z'), new ItemStack(Block.stone),
311                         Character.valueOf('A'), new ItemStack(Block.obsidian),
312                 });
313                 GameRegistry.addRecipe(new ItemStack(this.blockToolAndWeaponCraftingTable),
314                                 new Object[]{
315                         "XYX", "ZAZ", "ZZZ",
316                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
317                         Character.valueOf('Y'), new ItemStack(Block.workbench),
318                         Character.valueOf('Z'), new ItemStack(Block.stone),
319                         Character.valueOf('A'), new ItemStack(Item.pickaxeSteel),
320                 });
321                 GameRegistry.addRecipe(new ItemStack(this.blockChemicalCraftingTable),
322                                 new Object[]{
323                         "XYX", "ZAZ", "ZZZ",
324                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
325                         Character.valueOf('Y'), new ItemStack(Block.workbench),
326                         Character.valueOf('Z'), new ItemStack(Block.stone),
327                         Character.valueOf('A'), new ItemStack(this.itemAtoms, 1, 0),
328                 });
329
330                 //鉱石を追加します
331                 api.addAtomsOre(Block.blockDiamond.blockID, 0, 5, 20, 20); //テスト用。ダイヤモンドブロックを生成します
332
333                 //鉱石の生成
334                 for (int i = 0; i < api.getAtomsOreIDList().size(); i++) {
335                         GameRegistry.registerWorldGenerator(new WorldGenAtomsOre(api.getAtomsOreIDList().get(i), api.getAtomsOreMetaList().get(i), api.getAtomsOreSizeList().get(i), api.getAtomsOreFrequencyList().get(i), api.getAtomsOrePosYList().get(i)));
336                 }
337
338                 //化合物を追加します
339                 api.addLangCompound("ja_JP", "ChlorousAcid", "亜塩素酸");
340
341                 api.addLangCompound("ja_JP", "CarbonMonoxide", "一酸化炭素");
342                 api.addLangCompound("ja_JP", "CarbonDioxide", "二酸化炭素");
343                 api.addLangCompound("ja_JP", "Water", "水");
344
345
346                 //化合物のHandlerを設定します
347                 api.settingCompoundHandler("Water", new CompoundWater());
348
349                 //化合物のレシピを追加します
350                 api.addChemicalCombinationRecipe(new String[]{"H", "O", "Cl"}, new Integer[]{1, 2, 1}, new ItemStack(this.itemCompounds, 1, api.getCompound("ChlorousAcid")));
351
352                 api.addChemicalCombinationRecipe(new String[]{"H", "O"}, new Integer[]{2, 1}, new ItemStack(this.itemCompounds, 1, api.getCompound("Water")));
353
354                 //手榴弾の追加
355                 api.addMaterialRecipe(
356                                 new ItemStack[]{
357                                                 null,
358                                                 new ItemStack(Block.stone),
359                                                 null,
360                                                 new ItemStack(Block.stone),
361                                                 new ItemStack(Item.gunpowder),
362                                                 new ItemStack(Block.stone),
363                                                 null,
364                                                 new ItemStack(Block.stone),
365                                                 null
366                                 },
367                                 new ItemStack(this.itemAtomGrenade, 16, 0),
368                                 new NBTRecipeGrenade()
369                                 );
370                 //Tickingの追加
371                 this.proxy.registerTickHandler();
372         }
373
374         private void apiProcessing(final FMLPostInitializationEvent event) {
375                 // API用の処理
376                 this.nameAuxiliary.addName(itemCompounds, api.getCompoundsName().toArray());
377                 for (int i = 0; i < api.getCompoundsLang().size(); i++) {
378                         this.nameAuxiliary.addName(itemCompounds, api.getCompoundsLang().get(i), api.getCompoundsLangName().toArray());
379                 }
380         }
381
382         private void debug(final FMLPostInitializationEvent event) {
383         }
384
385 }