OSDN Git Service

処理わけ
authormozipi <mozipi@users.sourceforge.jp>
Tue, 25 Dec 2012 10:04:32 +0000 (19:04 +0900)
committermozipi <mozipi@users.sourceforge.jp>
Tue, 25 Dec 2012 10:04:32 +0000 (19:04 +0900)
common/chemicraft/ChemiCraft.java

index b5caa9d..58ab442 100644 (file)
@@ -162,10 +162,11 @@ public class ChemiCraft {
 \r
        @Mod.PostInit\r
        public void chemiPostLoadMethod(FMLPostInitializationEvent event) {\r
-               // API用の処理\r
-               this.NameAuxiliary.addName(itemCompounds, ChemiCraftAPI.instance.getCompoundsName().toArray());\r
-               this.NameAuxiliary.addName(itemCompounds, "ja_JP", ChemiCraftAPI.instance.getCompoundsLangName().toArray());\r
+               this.settingProcessing(event);\r
+               this.apiProcessing(event);\r
+       }\r
 \r
+       private void settingProcessing(FMLPostInitializationEvent event){\r
                // Blockを追加します\r
                this.blockDecompositionTable = new BlockDecompositionTable(this.decompositionTableID, 0, Material.ground).setHardness(2.0F).setResistance(0.0F).setStepSound(Block.soundStoneFootstep).setBlockName("DecompositionTable");\r
                this.blockChemicalCombinationTable = new BlockChemicalCombinationTable(this.chemicalConbinationTableID, 0, Material.ground).setHardness(2.0F).setResistance(0.0F).setStepSound(Block.soundStoneFootstep).setBlockName("ChemicalCombinationTable");\r
@@ -255,6 +256,12 @@ public class ChemiCraft {
 \r
        }\r
 \r
+       private void apiProcessing(FMLPostInitializationEvent event){\r
+               // API用の処理\r
+               this.NameAuxiliary.addName(itemCompounds, ChemiCraftAPI.instance.getCompoundsName().toArray());\r
+               this.NameAuxiliary.addName(itemCompounds, "ja_JP", ChemiCraftAPI.instance.getCompoundsLangName().toArray());\r
+       }\r
+\r
        public final static int HYDROGEN = 0;\r
        public final static int HELIUM = 1;\r
        public final static int LITHIUM = 2;\r