OSDN Git Service

tc
authormozipi <mozipi_2@yahoo.co.jp>
Wed, 17 Apr 2013 10:27:23 +0000 (19:27 +0900)
committermozipi <mozipi_2@yahoo.co.jp>
Wed, 17 Apr 2013 10:27:23 +0000 (19:27 +0900)
common/pcc/chemicraft/base/ChemiCraftBase.java
common/pcc/chemicraft/base/ChemiCraftRegisterBaseRecipe.java
common/pcc/chemicraft/base/ChemiCraftRegisterItem.java
common/pcc/chemicraft/testcase/FormulaTest.java

index 6c71f9c..2aad596 100644 (file)
@@ -68,6 +68,7 @@ public class ChemiCraftBase extends ChemiCraft {
        public int radiationGunID;
        public int radiationBalletID;
        public int oreSerarcherID;
        public int radiationGunID;
        public int radiationBalletID;
        public int oreSerarcherID;
+       public int raditionGunDataChipID;
 
        /**
         * the BlockID.
 
        /**
         * the BlockID.
@@ -88,6 +89,7 @@ public class ChemiCraftBase extends ChemiCraft {
        public Item itemRadiationGun;
        public Item itemRadiationBallet;
        public Item itemOreSearcher;
        public Item itemRadiationGun;
        public Item itemRadiationBallet;
        public Item itemOreSearcher;
+       public Item itemRaditionGunDataChip;
 
        /**
         * the Register Instances.
 
        /**
         * the Register Instances.
@@ -101,7 +103,7 @@ public class ChemiCraftBase extends ChemiCraft {
        public ChemiCraftRegister registerEntitys;
 
        /**
        public ChemiCraftRegister registerEntitys;
 
        /**
-        * the Textures
+        * the Textures.
         */
        public static final String ORE = ChemiCraft.TEXTURE + "atoms_ore_";
 
         */
        public static final String ORE = ChemiCraft.TEXTURE + "atoms_ore_";
 
index a59a51d..6d44420 100644 (file)
@@ -6,6 +6,8 @@ import net.minecraft.block.Block;
 import net.minecraft.item.Item;
 import net.minecraft.item.ItemStack;
 import net.minecraftforge.oredict.OreDictionary;
 import net.minecraft.item.Item;
 import net.minecraft.item.ItemStack;
 import net.minecraftforge.oredict.OreDictionary;
+import pcc.chemicraft.ChemiCraftData;
+import pcc.chemicraft.core.ChemiCraftAPI;
 import pcc.chemicraft.core.ChemiCraftCore;
 import pcc.chemicraft.core.nbt.NBTRecipeGrenade;
 import pcc.chemicraft.util.Formula;
 import pcc.chemicraft.core.ChemiCraftCore;
 import pcc.chemicraft.core.nbt.NBTRecipeGrenade;
 import pcc.chemicraft.util.Formula;
@@ -78,15 +80,9 @@ public class ChemiCraftRegisterBaseRecipe extends ChemiCraftBaseRegister {
                //素材制作台のレシピ
                this.mod.api.addMaterialRecipe(
                                new ItemStack[] {
                //素材制作台のレシピ
                this.mod.api.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
+                                               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.mod.itemAtomGrenade, 16, 0),
                                new NBTRecipeGrenade());
                                },
                                new ItemStack(this.mod.itemAtomGrenade, 16, 0),
                                new NBTRecipeGrenade());
@@ -99,6 +95,33 @@ public class ChemiCraftRegisterBaseRecipe extends ChemiCraftBaseRegister {
                                new NBTRecipeGrenade()
                                );
 
                                new NBTRecipeGrenade()
                                );
 
+               ChemiCraftAPI.addMaterialRecipe(
+                               new ItemStack[] {
+                                               new ItemStack(Block.stone), new ItemStack(Item.ingotIron), new ItemStack(Block.stone),
+                                               new ItemStack(Item.ingotIron), new ItemStack(ChemiCraftCore.instance.itemAtoms, 1, ChemiCraftData.URANIUM), new ItemStack(Item.ingotIron),
+                                               new ItemStack(Block.stone), new ItemStack(Item.redstone), new ItemStack(Block.stone)
+                               },
+                               new ItemStack(this.mod.itemRadiationBallet),
+                               null);
+
+               ChemiCraftAPI.addMaterialRecipe(
+                               new ItemStack[] {
+                                               new ItemStack(Block.stone), new ItemStack(ChemiCraftCore.instance.itemAtoms, 1, ChemiCraftData.URANIUM), new ItemStack(Block.stone),
+                                               new ItemStack(Item.ingotIron), new ItemStack(Item.redstone), new ItemStack(Item.ingotIron),
+                                               new ItemStack(Block.stone), new ItemStack(Item.redstone), new ItemStack(Block.stone)
+                               },
+                               new ItemStack(this.mod.itemRaditionGunDataChip),
+                               null);
+
+               ChemiCraftAPI.addMaterialRecipe(
+                               new ItemStack[]{
+                                               new ItemStack(Block.blockSteel), new ItemStack(Block.blockSteel), new ItemStack(this.mod.itemRaditionGunDataChip),
+                                               null, null, new ItemStack(Block.stone),
+                                               null, null, new ItemStack(Item.stick)
+                               },
+                               new ItemStack(this.mod.itemRadiationGun),
+                               null);
+
                //分解台のレシピ
                this.mod.api.addElectrolysisDecompositionRecipe(
                                new ItemStack(ChemiCraftCore.instance.itemCompounds, 1, this.mod.api.getCompound("Water")),
                //分解台のレシピ
                this.mod.api.addElectrolysisDecompositionRecipe(
                                new ItemStack(ChemiCraftCore.instance.itemCompounds, 1, this.mod.api.getCompound("Water")),
index 98b51e3..2b71caa 100644 (file)
@@ -1,11 +1,16 @@
 package pcc.chemicraft.base;
 
 package pcc.chemicraft.base;
 
+import net.minecraft.client.renderer.texture.IconRegister;
+import net.minecraft.item.Item;
+import pcc.chemicraft.ChemiCraft;
 import pcc.chemicraft.base.item.ItemAtomsGrenade;
 import pcc.chemicraft.base.item.ItemBlackSmoke;
 import pcc.chemicraft.base.item.ItemDust;
 import pcc.chemicraft.base.item.ItemOreSerarcher;
 import pcc.chemicraft.base.item.ItemRadiationBullet;
 import pcc.chemicraft.base.item.ItemRadiationGun;
 import pcc.chemicraft.base.item.ItemAtomsGrenade;
 import pcc.chemicraft.base.item.ItemBlackSmoke;
 import pcc.chemicraft.base.item.ItemDust;
 import pcc.chemicraft.base.item.ItemOreSerarcher;
 import pcc.chemicraft.base.item.ItemRadiationBullet;
 import pcc.chemicraft.base.item.ItemRadiationGun;
+import pcc.chemicraft.util.Auxiliary;
+import pcc.chemicraft.util.Auxiliary.NameAuxiliary;
 
 /**
  * アイテムを追加します
 
 /**
  * アイテムを追加します
@@ -26,6 +31,12 @@ public class ChemiCraftRegisterItem extends ChemiCraftBaseRegister {
                this.mod.itemRadiationBallet = new ItemRadiationBullet(this.mod.radiationBalletID).setUnlocalizedName("RadiationBullet");
                this.mod.itemBlackSmoke = new ItemBlackSmoke(this.mod.blackSmokeID).setUnlocalizedName("BlackSmoke");
                this.mod.itemOreSearcher = new ItemOreSerarcher(this.mod.oreSerarcherID).setUnlocalizedName("oreSearcher");
                this.mod.itemRadiationBallet = new ItemRadiationBullet(this.mod.radiationBalletID).setUnlocalizedName("RadiationBullet");
                this.mod.itemBlackSmoke = new ItemBlackSmoke(this.mod.blackSmokeID).setUnlocalizedName("BlackSmoke");
                this.mod.itemOreSearcher = new ItemOreSerarcher(this.mod.oreSerarcherID).setUnlocalizedName("oreSearcher");
+               this.mod.itemRaditionGunDataChip = new Item(this.mod.raditionGunDataChipID) {
+                       @Override
+                       public void updateIcons(IconRegister par1IconRegister) {
+                               this.iconIndex = par1IconRegister.registerIcon(ChemiCraft.TEXTURE + "RaditionGunDataChip");
+                       }
+               }.setUnlocalizedName("RaditionGunDataChip");
 
                //名前を登録&Minecraftに登録
                this.mod.nameAuxiliary.addName(this.mod.itemAtomGrenade, "AtomGrenade");
 
                //名前を登録&Minecraftに登録
                this.mod.nameAuxiliary.addName(this.mod.itemAtomGrenade, "AtomGrenade");
@@ -40,6 +51,8 @@ public class ChemiCraftRegisterItem extends ChemiCraftBaseRegister {
                this.mod.nameAuxiliary.addName(this.mod.itemBlackSmoke, "ja_JP", "黒煙");
                this.mod.nameAuxiliary.addName(this.mod.itemOreSearcher, "OreSearcher");
                this.mod.nameAuxiliary.addName(this.mod.itemOreSearcher, "ja_JP", "鉱石情報探知機");
                this.mod.nameAuxiliary.addName(this.mod.itemBlackSmoke, "ja_JP", "黒煙");
                this.mod.nameAuxiliary.addName(this.mod.itemOreSearcher, "OreSearcher");
                this.mod.nameAuxiliary.addName(this.mod.itemOreSearcher, "ja_JP", "鉱石情報探知機");
+               this.mod.nameAuxiliary.addName(this.mod.itemRaditionGunDataChip, "RaditionGunDataChip");
+               this.mod.nameAuxiliary.addName(this.mod.itemRaditionGunDataChip, "ja_JP", "放射線銃データチップ");
        }
 
 }
        }
 
 }
index cc6558e..31f2a43 100644 (file)
@@ -1,4 +1,3 @@
-/*
 package pcc.chemicraft.testcase;
 
 import static org.junit.Assert.*;
 package pcc.chemicraft.testcase;
 
 import static org.junit.Assert.*;
@@ -80,4 +79,3 @@ public class FormulaTest extends Formula {
        }
 
 }
        }
 
 }
-*/