OSDN Git Service

レシピ用クラスChemiCraftAddRecipeを追加。
authorponkotate <ponkotate@users.sourceforge.jp>
Thu, 20 Dec 2012 11:19:14 +0000 (20:19 +0900)
committerponkotate <ponkotate@users.sourceforge.jp>
Thu, 20 Dec 2012 11:19:14 +0000 (20:19 +0900)
common/chemicraft/ChemiCraft.java

index 19971f7..0a361a5 100644 (file)
@@ -1,4 +1,4 @@
-package chemicraft;\r
+package chemicraft;\r
 \r
 import net.minecraft.src.Block;\r
 import net.minecraft.src.CreativeTabs;\r
 \r
 import net.minecraft.src.Block;\r
 import net.minecraft.src.CreativeTabs;\r
@@ -87,17 +87,17 @@ public class ChemiCraft {
        /**\r
         * Block型変数\r
         */\r
        /**\r
         * Block型変数\r
         */\r
-       public Block blockDecompositionTable;\r
-       public Block blockChemicalCombinationTable;\r
-       public Block blockToolAndWeaponCraftingTable;\r
-       public Block blockMaterialCraftingTable;\r
+       public static Block blockDecompositionTable;\r
+       public static Block blockChemicalCombinationTable;\r
+       public static Block blockToolAndWeaponCraftingTable;\r
+       public static Block blockMaterialCraftingTable;\r
 \r
        /**\r
         * Item型変数\r
         */\r
 \r
        /**\r
         * Item型変数\r
         */\r
-       public Item itemAtoms;\r
-       public Item itemCompounds;\r
-       public Item itemGasCollectingBottle;\r
+       public static Item itemAtoms;\r
+       public static Item itemCompounds;\r
+       public static Item itemGasCollectingBottle;\r
 \r
        /**\r
         * このmodで使用するTextureのパス\r
 \r
        /**\r
         * このmodで使用するTextureのパス\r
@@ -116,6 +116,7 @@ public class ChemiCraft {
        private Auxiliary Auxiliary = new Auxiliary();\r
        private NameAuxiliary NameAuxiliary = Auxiliary.new NameAuxiliary();\r
 \r
        private Auxiliary Auxiliary = new Auxiliary();\r
        private NameAuxiliary NameAuxiliary = Auxiliary.new NameAuxiliary();\r
 \r
+       private ChemiCraftAddRecipe Recipe = new ChemiCraftAddRecipe();\r
 \r
        @Mod.PreInit\r
        public void chemiPreLoadMethod(FMLPreInitializationEvent event) {\r
 \r
        @Mod.PreInit\r
        public void chemiPreLoadMethod(FMLPreInitializationEvent event) {\r
@@ -206,16 +207,11 @@ public class ChemiCraft {
                // GUIを追加します\r
                NetworkRegistry.instance().registerGuiHandler(instance, proxy);\r
 \r
                // GUIを追加します\r
                NetworkRegistry.instance().registerGuiHandler(instance, proxy);\r
 \r
-               //分解レシピを追加します\r
-               ChemiCraftAPI.instance.addDecompositionRecipe(new ItemStack(Block.dirt, 1, 0), new ItemStack[]{new ItemStack(Block.stone, 16, 0),new ItemStack(Block.dispenser)});\r
-               ChemiCraftAPI.instance.addDecompositionRecipe(new ItemStack(Block.stone, 1, 0), new ItemStack[]{new ItemStack(Block.stone, 16, 0)});\r
-\r
-               //化合レシピを追加します\r
-               ChemiCraftAPI.instance.addChemicalCombinationRecipe(new ItemStack[]{new ItemStack(Block.dirt), new ItemStack(Block.stone)}, new ItemStack(Block.stone));\r
-               ChemiCraftAPI.instance.addChemicalCombinationRecipe(new ItemStack[]{new ItemStack(Block.stone)}, new ItemStack(Block.dirt));\r
-\r
                //Textureをpreloadします\r
                proxy.registerTextures();\r
                //Textureをpreloadします\r
                proxy.registerTextures();\r
+\r
+               // Recipe\r
+               this.Recipe.recipe();\r
        }\r
 \r
 }
\ No newline at end of file
        }\r
 \r
 }
\ No newline at end of file