おもな投稿先
Revisión | 94680f2aaff429f932c4736563a56f6c4fc0bef5 (tree) |
---|---|
Tiempo | 2013-12-26 16:42:57 |
Autor | inaka <inaka@tcrs...> |
Commiter | inaka |
1.5.2準拠実装
EOfurnaceはエラー多発で1.4.7実装見送り
@@ -0,0 +1,19 @@ | ||
1 | +package asia.tcrs.mtc.Block; | |
2 | + | |
3 | +import asia.tcrs.tcrscore.mod.block.BaseBlock; | |
4 | +import net.minecraft.block.Block; | |
5 | +import net.minecraft.block.material.Material; | |
6 | +import net.minecraft.creativetab.CreativeTabs; | |
7 | + | |
8 | +public class ExtraObsidian extends BaseBlock { | |
9 | + | |
10 | + public ExtraObsidian(int par1, Material par2Material, int par3) { | |
11 | + super(par1, par2Material, par3); | |
12 | + } | |
13 | + | |
14 | + public String getTextureFile() | |
15 | + { | |
16 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
17 | + | |
18 | + } | |
19 | +} |
@@ -0,0 +1,22 @@ | ||
1 | +package asia.tcrs.mtc.Block; | |
2 | + | |
3 | +import asia.tcrs.tcrscore.mod.block.BaseBlock; | |
4 | +import cpw.mods.fml.relauncher.Side; | |
5 | +import cpw.mods.fml.relauncher.SideOnly; | |
6 | +import net.minecraft.block.Block; | |
7 | +import net.minecraft.block.material.Material; | |
8 | +import net.minecraft.creativetab.CreativeTabs; | |
9 | + | |
10 | +public class Extrablock extends BaseBlock | |
11 | +{ | |
12 | + public Extrablock(int par1, Material par2Material, int par3) { | |
13 | + super(par1, par2Material, par3); | |
14 | + } | |
15 | + | |
16 | + public String getTextureFile() | |
17 | + { | |
18 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
19 | + | |
20 | + } | |
21 | + | |
22 | +} | |
\ No newline at end of file |
@@ -0,0 +1,20 @@ | ||
1 | +package asia.tcrs.mtc; | |
2 | + | |
3 | +import asia.tcrs.mtc.Block.ExtraObsidian; | |
4 | +import asia.tcrs.mtc.Block.Extrablock; | |
5 | +import cpw.mods.fml.common.registry.GameRegistry; | |
6 | +import cpw.mods.fml.common.registry.LanguageRegistry; | |
7 | +import net.minecraft.block.Block; | |
8 | +import net.minecraft.block.material.Material; | |
9 | + | |
10 | +public class BlockList { | |
11 | + | |
12 | + | |
13 | + materialconverter MTC = new materialconverter(); | |
14 | + | |
15 | + | |
16 | + public void load(){ | |
17 | + | |
18 | + } | |
19 | + | |
20 | +} |
@@ -0,0 +1,14 @@ | ||
1 | +package asia.tcrs.mtc.Client; | |
2 | + | |
3 | +import net.minecraftforge.client.MinecraftForgeClient; | |
4 | +import asia.tcrs.mtc.CommonProxy; | |
5 | + | |
6 | + | |
7 | +public class ClientProxy extends CommonProxy | |
8 | +{ | |
9 | + @Override | |
10 | + public void registerRenderThings() | |
11 | + { | |
12 | + MinecraftForgeClient.preloadTexture("/asia/tcrs/mtc/resource/mtc.png"); | |
13 | + } | |
14 | +} |
@@ -0,0 +1,43 @@ | ||
1 | +package asia.tcrs.mtc.Client; | |
2 | + | |
3 | +import net.minecraft.client.gui.inventory.GuiContainer; | |
4 | +import net.minecraft.entity.player.InventoryPlayer; | |
5 | +import net.minecraft.util.StatCollector; | |
6 | +import net.minecraft.world.World; | |
7 | + | |
8 | +import org.lwjgl.opengl.GL11; | |
9 | + | |
10 | +import asia.tcrs.mtc.ContainerPortableWorkbench; | |
11 | + | |
12 | +import cpw.mods.fml.relauncher.Side; | |
13 | +import cpw.mods.fml.relauncher.SideOnly; | |
14 | + | |
15 | +@SideOnly(Side.CLIENT) | |
16 | +public class GuiPortableCrafting extends GuiContainer | |
17 | +{ | |
18 | + public GuiPortableCrafting(InventoryPlayer par1InventoryPlayer, World par2World, int par3, int par4, int par5) | |
19 | + { | |
20 | + super(new ContainerPortableWorkbench(par1InventoryPlayer, par2World, par3, par4, par5)); | |
21 | + } | |
22 | + | |
23 | + /** | |
24 | + * Draw the foreground layer for the GuiContainer (everything in front of the items) | |
25 | + */ | |
26 | + protected void drawGuiContainerForegroundLayer(int par1, int par2) | |
27 | + { | |
28 | + this.fontRenderer.drawString(StatCollector.translateToLocal("container.crafting"), 28, 6, 4210752); | |
29 | + this.fontRenderer.drawString(StatCollector.translateToLocal("container.inventory"), 8, this.ySize - 96 + 2, 4210752); | |
30 | + } | |
31 | + | |
32 | + /** | |
33 | + * Draw the background layer for the GuiContainer (everything behind the items) | |
34 | + */ | |
35 | + protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) | |
36 | + { | |
37 | + GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); | |
38 | + this.mc.renderEngine.bindTexture(this.mc.renderEngine.getTexture("/gui/crafting.png")); | |
39 | + int k = (this.width - this.xSize) / 2; | |
40 | + int l = (this.height - this.ySize) / 2; | |
41 | + this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize); | |
42 | + } | |
43 | +} |
@@ -0,0 +1,6 @@ | ||
1 | +package asia.tcrs.mtc; | |
2 | + | |
3 | +public class CommonProxy | |
4 | +{ | |
5 | + public void registerRenderThings() {}; | |
6 | +} |
@@ -0,0 +1,21 @@ | ||
1 | +package asia.tcrs.mtc; | |
2 | + | |
3 | +import net.minecraft.entity.player.EntityPlayer; | |
4 | +import net.minecraft.entity.player.InventoryPlayer; | |
5 | +import net.minecraft.inventory.ContainerWorkbench; | |
6 | +import net.minecraft.world.World; | |
7 | + | |
8 | +public class ContainerPortableWorkbench extends ContainerWorkbench { | |
9 | + | |
10 | + public ContainerPortableWorkbench(InventoryPlayer par1InventoryPlayer, World par2World, int par3, int par4, int par5) { | |
11 | + super(par1InventoryPlayer, par2World, par3, par4, par5); | |
12 | + } | |
13 | + | |
14 | + @Override | |
15 | + public boolean canInteractWith(EntityPlayer par1EntityPlayer) { | |
16 | + return true; | |
17 | + } | |
18 | + | |
19 | + | |
20 | + | |
21 | +} |
@@ -0,0 +1,21 @@ | ||
1 | +package asia.tcrs.mtc; | |
2 | + | |
3 | +import asia.tcrs.mtc.Client.GuiPortableCrafting; | |
4 | +import net.minecraft.entity.player.EntityPlayer; | |
5 | +import net.minecraft.world.World; | |
6 | +import cpw.mods.fml.common.network.IGuiHandler; | |
7 | + | |
8 | +public class GuiHander implements IGuiHandler { | |
9 | + | |
10 | + @Override | |
11 | + public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { | |
12 | + return new ContainerPortableWorkbench(player.inventory, world, x, y, z); | |
13 | + } | |
14 | + | |
15 | + @Override | |
16 | + public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { | |
17 | + return new GuiPortableCrafting(player.inventory, world, x, y, z); | |
18 | + } | |
19 | + | |
20 | +} | |
21 | + |
@@ -0,0 +1,18 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import net.minecraft.creativetab.CreativeTabs; | |
4 | +import net.minecraft.item.Item; | |
5 | + | |
6 | +public class ExtraObsidianIngot extends Item { | |
7 | + | |
8 | + public ExtraObsidianIngot(int par1) { | |
9 | + super(par1); | |
10 | + maxStackSize = 64; | |
11 | + } | |
12 | + | |
13 | + public String getTextureFile() | |
14 | + { | |
15 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
16 | + } | |
17 | + | |
18 | +} |
@@ -0,0 +1,20 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import cpw.mods.fml.relauncher.Side; | |
4 | +import cpw.mods.fml.relauncher.SideOnly; | |
5 | +import net.minecraft.item.*; | |
6 | + | |
7 | + | |
8 | + | |
9 | +public class ExtraObsidianPickaxe extends ItemPickaxe | |
10 | +{ | |
11 | + private String iconName; | |
12 | + public ExtraObsidianPickaxe(int par1, EnumToolMaterial par2EnumToolMaterial) { | |
13 | + super(par1, par2EnumToolMaterial); | |
14 | + } | |
15 | + | |
16 | + public String getTextureFile() | |
17 | + { | |
18 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
19 | + } | |
20 | +} |
@@ -0,0 +1,22 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import cpw.mods.fml.relauncher.Side; | |
4 | +import cpw.mods.fml.relauncher.SideOnly; | |
5 | +import net.minecraft.creativetab.CreativeTabs; | |
6 | +import net.minecraft.item.EnumToolMaterial; | |
7 | +import net.minecraft.item.Item; | |
8 | +import net.minecraft.item.ItemAxe; | |
9 | + | |
10 | +public class ExtraObsidianaxe extends ItemAxe{ | |
11 | + private String iconName; | |
12 | + public ExtraObsidianaxe(int par1, EnumToolMaterial par2EnumToolMaterial) { | |
13 | + super(par1, par2EnumToolMaterial); | |
14 | + } | |
15 | + | |
16 | + public String getTextureFile() | |
17 | + { | |
18 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
19 | + } | |
20 | + | |
21 | + | |
22 | +} |
@@ -0,0 +1,22 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import cpw.mods.fml.relauncher.Side; | |
4 | +import cpw.mods.fml.relauncher.SideOnly; | |
5 | +import net.minecraft.creativetab.CreativeTabs; | |
6 | +import net.minecraft.item.EnumToolMaterial; | |
7 | +import net.minecraft.item.Item; | |
8 | +import net.minecraft.item.ItemHoe; | |
9 | + | |
10 | +public class ExtraObsidianhoe extends ItemHoe{ | |
11 | + private String iconName; | |
12 | + public ExtraObsidianhoe(int par1, EnumToolMaterial par2EnumToolMaterial) { | |
13 | + super(par1, par2EnumToolMaterial); | |
14 | + } | |
15 | + | |
16 | + public String getTextureFile() | |
17 | + { | |
18 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
19 | + } | |
20 | + | |
21 | + | |
22 | +} |
@@ -0,0 +1,21 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import cpw.mods.fml.relauncher.Side; | |
4 | +import cpw.mods.fml.relauncher.SideOnly; | |
5 | +import net.minecraft.creativetab.CreativeTabs; | |
6 | +import net.minecraft.item.EnumToolMaterial; | |
7 | +import net.minecraft.item.Item; | |
8 | +import net.minecraft.item.ItemSpade; | |
9 | + | |
10 | +public class ExtraObsidianshovel extends ItemSpade{ | |
11 | + private String iconName; | |
12 | + public ExtraObsidianshovel(int par1, EnumToolMaterial par2EnumToolMaterial) { | |
13 | + super(par1, par2EnumToolMaterial); | |
14 | + } | |
15 | + | |
16 | + public String getTextureFile() | |
17 | + { | |
18 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
19 | + } | |
20 | + | |
21 | +} |
@@ -0,0 +1,20 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import cpw.mods.fml.relauncher.Side; | |
4 | +import cpw.mods.fml.relauncher.SideOnly; | |
5 | +import net.minecraft.creativetab.CreativeTabs; | |
6 | +import net.minecraft.item.EnumToolMaterial; | |
7 | +import net.minecraft.item.Item; | |
8 | +import net.minecraft.item.ItemSword; | |
9 | + | |
10 | +public class ExtraObsidiansword extends ItemSword{ | |
11 | + private String iconName; | |
12 | + public ExtraObsidiansword(int par1, EnumToolMaterial par2EnumToolMaterial) { | |
13 | + super(par1, par2EnumToolMaterial); | |
14 | + } | |
15 | + | |
16 | + public String getTextureFile() | |
17 | + { | |
18 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
19 | + } | |
20 | +} |
@@ -0,0 +1,47 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import asia.tcrs.mtc.materialconverter; | |
4 | +import asia.tcrs.tcrscore.mod.item.BaseItem; | |
5 | +import cpw.mods.fml.relauncher.Side; | |
6 | +import cpw.mods.fml.relauncher.SideOnly; | |
7 | +import net.minecraft.creativetab.CreativeTabs; | |
8 | +import net.minecraft.entity.player.EntityPlayer; | |
9 | +import net.minecraft.item.EnumRarity; | |
10 | +import net.minecraft.item.Item; | |
11 | +import net.minecraft.item.ItemStack; | |
12 | +import net.minecraft.world.World; | |
13 | + | |
14 | +public class Materialstone extends BaseItem | |
15 | +{ | |
16 | + public Materialstone(int par1) | |
17 | + { | |
18 | + super(par1); | |
19 | + maxStackSize = 1; | |
20 | + setContainerItem(this); | |
21 | + } | |
22 | + | |
23 | + public boolean doesContainerItemLeaveCraftingGrid(ItemStack itemStack) { | |
24 | + return false; | |
25 | + } | |
26 | + | |
27 | + @SideOnly(Side.CLIENT) | |
28 | + public EnumRarity getRarity(ItemStack par1){ | |
29 | + return EnumRarity.epic; | |
30 | + } | |
31 | + | |
32 | + @SideOnly(Side.CLIENT) | |
33 | + public boolean hasEffect(ItemStack par1ItemStack) | |
34 | + { | |
35 | + return true; | |
36 | + } | |
37 | + @Override | |
38 | + public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { | |
39 | + if(!par2World.isRemote) | |
40 | + par3EntityPlayer.openGui(materialconverter.instance, 1, par2World, 0, 0, 0); | |
41 | + return par1ItemStack; | |
42 | + } | |
43 | + public String getTextureFile() | |
44 | + { | |
45 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
46 | + } | |
47 | +} |
@@ -0,0 +1,17 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import asia.tcrs.tcrscore.mod.item.BaseItem; | |
4 | + | |
5 | +public class SimpleItem extends BaseItem{ | |
6 | + | |
7 | + public SimpleItem(int par1) { | |
8 | + super(par1); | |
9 | + maxStackSize = 64; | |
10 | + } | |
11 | + | |
12 | + public String getTextureFile() | |
13 | + { | |
14 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
15 | + } | |
16 | + | |
17 | +} |
@@ -0,0 +1,24 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import asia.tcrs.tcrscore.mod.item.BaseItem; | |
4 | +import cpw.mods.fml.relauncher.Side; | |
5 | +import cpw.mods.fml.relauncher.SideOnly; | |
6 | +import net.minecraft.creativetab.CreativeTabs; | |
7 | +import net.minecraft.entity.player.EntityPlayer; | |
8 | +import net.minecraft.item.Item; | |
9 | +import net.minecraft.item.ItemStack; | |
10 | +import net.minecraft.world.World; | |
11 | + | |
12 | +public class Supercoal extends BaseItem{ | |
13 | + public Supercoal(int par1) | |
14 | + { | |
15 | + super(par1); | |
16 | + maxStackSize = 64; | |
17 | + } | |
18 | + | |
19 | + public String getTextureFile() | |
20 | + { | |
21 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
22 | + } | |
23 | + | |
24 | +} |
@@ -0,0 +1,18 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import net.minecraft.item.Item; | |
4 | + | |
5 | +public class goldstick extends Item { | |
6 | + | |
7 | + public goldstick(int par1) { | |
8 | + super(par1); | |
9 | + maxStackSize = 64; | |
10 | + } | |
11 | + | |
12 | + public String getTextureFile() | |
13 | + { | |
14 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
15 | + | |
16 | + } | |
17 | + | |
18 | +} |
@@ -0,0 +1,18 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import net.minecraft.item.Item; | |
4 | + | |
5 | +public class ironstick extends Item { | |
6 | + | |
7 | + public ironstick(int par1) { | |
8 | + super(par1); | |
9 | + maxStackSize = 64; | |
10 | + } | |
11 | + | |
12 | + public String getTextureFile() | |
13 | + { | |
14 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
15 | + | |
16 | + } | |
17 | + | |
18 | +} |
@@ -0,0 +1,17 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import asia.tcrs.tcrscore.mod.item.BaseItem; | |
4 | +import net.minecraft.creativetab.CreativeTabs; | |
5 | +import net.minecraft.item.Item; | |
6 | + | |
7 | +public class repairdustH extends BaseItem{ | |
8 | + public repairdustH(int par1) | |
9 | + { | |
10 | + super(par1); | |
11 | + maxStackSize = 64; | |
12 | + } | |
13 | + public String getTextureFile() | |
14 | + { | |
15 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
16 | + } | |
17 | +} |
@@ -0,0 +1,17 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import asia.tcrs.tcrscore.mod.item.BaseItem; | |
4 | +import net.minecraft.creativetab.CreativeTabs; | |
5 | +import net.minecraft.item.Item; | |
6 | + | |
7 | +public class repairdustL extends BaseItem{ | |
8 | + public repairdustL(int par1) | |
9 | + { | |
10 | + super(par1); | |
11 | + maxStackSize = 64; | |
12 | + } | |
13 | + public String getTextureFile() | |
14 | + { | |
15 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
16 | + } | |
17 | +} |
@@ -0,0 +1,19 @@ | ||
1 | +package asia.tcrs.mtc.Item; | |
2 | + | |
3 | +import asia.tcrs.tcrscore.mod.item.BaseItem; | |
4 | +import net.minecraft.creativetab.CreativeTabs; | |
5 | +import net.minecraft.item.Item; | |
6 | + | |
7 | +public class repairdustM extends BaseItem{ | |
8 | + public repairdustM(int par1) | |
9 | + { | |
10 | + super(par1); | |
11 | + maxStackSize = 64; | |
12 | + } | |
13 | + | |
14 | + public String getTextureFile() | |
15 | + { | |
16 | + return "/asia/tcrs/mtc/resource/mtc.png"; | |
17 | + } | |
18 | + | |
19 | +} |
@@ -0,0 +1,26 @@ | ||
1 | +package asia.tcrs.mtc; | |
2 | + | |
3 | +import cpw.mods.fml.common.registry.LanguageRegistry; | |
4 | + | |
5 | +public class Lang { | |
6 | + | |
7 | + public static void load(materialconverter mod) { | |
8 | + LanguageRegistry.addName(mod.Materialstone, "Materialstone"); | |
9 | + LanguageRegistry.addName(mod.Supercoal, "Supercoal"); | |
10 | + LanguageRegistry.addName(mod.ExtraObsidianIngot, "ExtraObsidianIngot"); | |
11 | + LanguageRegistry.addName(mod.ExtraObsidianPickaxe, "ExtraObsidianPickaxe"); | |
12 | + LanguageRegistry.addName(mod.ExtraObsidianaxe, "ExtraObsidianaxe"); | |
13 | + LanguageRegistry.addName(mod.ExtraObsidianshovel, "ExtraObsidianshovel"); | |
14 | + LanguageRegistry.addName(mod.ExtraObsidianhoe, "ExtraObsidianhoe"); | |
15 | + LanguageRegistry.addName(mod.ExtraObsidiansword, "ExtraObsidiansword"); | |
16 | + LanguageRegistry.addName(mod.goldstick, "goldstick"); | |
17 | + LanguageRegistry.addName(mod.ironstick, "ironstick"); | |
18 | + | |
19 | + LanguageRegistry.addName(mod.Extrablock, "Extrablock"); | |
20 | + LanguageRegistry.addName(mod.ExtraObsidian, "ExtraObsidian"); | |
21 | + | |
22 | + | |
23 | + | |
24 | + } | |
25 | + | |
26 | +} |
@@ -0,0 +1,28 @@ | ||
1 | +package asia.tcrs.mtc; | |
2 | + | |
3 | +import asia.tcrs.mtc.Item.Materialstone; | |
4 | +import cpw.mods.fml.relauncher.Side; | |
5 | +import cpw.mods.fml.relauncher.SideOnly; | |
6 | +import net.minecraft.creativetab.CreativeTabs; | |
7 | + | |
8 | +public class MTCCreativeTab extends CreativeTabs { | |
9 | + | |
10 | + public MTCCreativeTab(String label) { | |
11 | + super(label); | |
12 | + } | |
13 | + | |
14 | + @Override | |
15 | + @SideOnly(Side.CLIENT) | |
16 | + public int getTabIconItemIndex() | |
17 | + { | |
18 | + return materialconverter.Materialstone.itemID; | |
19 | + } | |
20 | + | |
21 | + @Override | |
22 | + @SideOnly(Side.CLIENT) | |
23 | + public String getTranslatedTabLabel() | |
24 | + { | |
25 | + return "materialconverter"; | |
26 | + } | |
27 | + | |
28 | +} |
@@ -0,0 +1,37 @@ | ||
1 | +package asia.tcrs.mtc; | |
2 | + | |
3 | +import net.minecraft.block.Block; | |
4 | +import net.minecraft.item.Item; | |
5 | + | |
6 | +public class MTCItems | |
7 | +{ | |
8 | + public static Block Extrablock; | |
9 | + public static Block ExtraObsidian; | |
10 | + public static Item Materialstone; | |
11 | + public static Item Supercoal; | |
12 | + public static Item goldstick; | |
13 | + public static Item ironstick; | |
14 | + public static Item ExtraObsidianIngot; | |
15 | + public static Item ExtraObsidianPickaxe; | |
16 | + public static Item ExtraObsidianaxe; | |
17 | + public static Item ExtraObsidianshovel; | |
18 | + public static Item ExtraObsidianhoe; | |
19 | + public static Item ExtraObsidiansword; | |
20 | + | |
21 | + public void load() | |
22 | + { | |
23 | + Extrablock = materialconverter.Extrablock; | |
24 | + ExtraObsidian = materialconverter.ExtraObsidian; | |
25 | + Materialstone = materialconverter.Materialstone; | |
26 | + Supercoal = materialconverter.Supercoal; | |
27 | + goldstick = materialconverter.goldstick; | |
28 | + ironstick = materialconverter.ironstick; | |
29 | + ExtraObsidianIngot = materialconverter.ExtraObsidianIngot; | |
30 | + ExtraObsidianPickaxe = materialconverter.ExtraObsidianPickaxe; | |
31 | + ExtraObsidianaxe = materialconverter.ExtraObsidianaxe; | |
32 | + ExtraObsidianshovel = materialconverter.ExtraObsidianshovel; | |
33 | + ExtraObsidianhoe = materialconverter.ExtraObsidianhoe; | |
34 | + ExtraObsidiansword = materialconverter.ExtraObsidiansword; | |
35 | + } | |
36 | + | |
37 | +} |
@@ -0,0 +1,5 @@ | ||
1 | +package asia.tcrs.mtc.api; | |
2 | + | |
3 | +public class MTCAPI { | |
4 | + | |
5 | +} |
@@ -0,0 +1,244 @@ | ||
1 | +package asia.tcrs.mtc; | |
2 | + | |
3 | +import java.util.logging.Level; | |
4 | + | |
5 | +import net.minecraft.block.Block; | |
6 | +import net.minecraft.block.material.Material; | |
7 | +import net.minecraft.creativetab.CreativeTabs; | |
8 | +import net.minecraft.item.EnumToolMaterial; | |
9 | +import net.minecraft.item.Item; | |
10 | +import net.minecraft.item.ItemStack; | |
11 | +import net.minecraftforge.common.Configuration; | |
12 | +import net.minecraftforge.common.EnumHelper; | |
13 | +import net.minecraftforge.common.Property; | |
14 | +import net.minecraftforge.oredict.OreDictionary; | |
15 | +import net.minecraftforge.oredict.ShapedOreRecipe; | |
16 | +import net.minecraftforge.oredict.ShapelessOreRecipe; | |
17 | +import asia.tcrs.mtc.Block.ExtraObsidian; | |
18 | +import asia.tcrs.mtc.Block.Extrablock; | |
19 | +import asia.tcrs.mtc.Item.ExtraObsidianPickaxe; | |
20 | +import asia.tcrs.mtc.Item.ExtraObsidianaxe; | |
21 | +import asia.tcrs.mtc.Item.ExtraObsidianhoe; | |
22 | +import asia.tcrs.mtc.Item.ExtraObsidianshovel; | |
23 | +import asia.tcrs.mtc.Item.ExtraObsidiansword; | |
24 | +import asia.tcrs.mtc.Item.Materialstone; | |
25 | +import asia.tcrs.mtc.Item.SimpleItem; | |
26 | +import asia.tcrs.mtc.Item.Supercoal; | |
27 | +import asia.tcrs.tcrscore.TcrsCore; | |
28 | +import asia.tcrs.tcrscore.mod.IMOD; | |
29 | +import asia.tcrs.tcrscore.mod.item.BaseItem; | |
30 | +import cpw.mods.fml.client.registry.RenderingRegistry; | |
31 | +import cpw.mods.fml.common.FMLLog; | |
32 | +import cpw.mods.fml.common.Mod; | |
33 | +import cpw.mods.fml.common.Mod.Init; | |
34 | +import cpw.mods.fml.common.Mod.Instance; | |
35 | +import cpw.mods.fml.common.SidedProxy; | |
36 | +import cpw.mods.fml.common.Mod.PreInit; | |
37 | +import cpw.mods.fml.common.event.FMLInitializationEvent; | |
38 | +import cpw.mods.fml.common.event.FMLPreInitializationEvent; | |
39 | +import cpw.mods.fml.common.network.NetworkMod; | |
40 | +import cpw.mods.fml.common.network.NetworkRegistry; | |
41 | +import cpw.mods.fml.common.registry.GameRegistry; | |
42 | + | |
43 | +@Mod(modid = "tcrs_materialconverter", name = "materialconverter", version = "alpha1.7.0", dependencies = "required-after:TcrsCore2") | |
44 | +@NetworkMod(clientSideRequired = true, serverSideRequired = false) | |
45 | +public class materialconverter implements IMOD{ | |
46 | + @SidedProxy(clientSide = "asia.tcrs.mtc.Client.ClientProxy", serverSide = "asia.tcrs.mtc.CommonProxy") | |
47 | + public static CommonProxy proxy; | |
48 | + | |
49 | + public static Block Extrablock; | |
50 | + public static Block ExtraObsidian; | |
51 | + | |
52 | + public static Item Materialstone; | |
53 | + public static Item Supercoal; | |
54 | + public static Item goldstick; | |
55 | + public static Item ironstick; | |
56 | + public static Item ExtraObsidianIngot; | |
57 | + public static Item ExtraObsidianPickaxe; | |
58 | + public static Item ExtraObsidianaxe; | |
59 | + public static Item ExtraObsidianshovel; | |
60 | + public static Item ExtraObsidianhoe; | |
61 | + public static Item ExtraObsidiansword; | |
62 | + | |
63 | + public static int ExtrablockID; | |
64 | + public static int ExtraObsidianID; | |
65 | + public static int MaterialstoneID; | |
66 | + public static int SupercoalID; | |
67 | + public static int ExtraObsidianIngotID; | |
68 | + public static int ExtraObsidianPickaxeID; | |
69 | + public static int goldstickID; | |
70 | + public static int ironstickID; | |
71 | + public static int ExtraObsidianaxeID; | |
72 | + public static int ExtraObsidianshovelID; | |
73 | + public static int ExtraObsidianhoeID; | |
74 | + public static int ExtraObsidianswordID; | |
75 | + | |
76 | + public static EnumToolMaterial ExtraObsidianToolMaterial; | |
77 | + | |
78 | + public static final CreativeTabs MTCCreativeTab = new MTCCreativeTab("MTC"); | |
79 | + | |
80 | + static int[] repairid = new int[5]; | |
81 | + | |
82 | + public Boolean uncraftprop = false; | |
83 | + | |
84 | + @Mod.Instance("tcrs_materialconverter") | |
85 | + public static materialconverter instance; | |
86 | + | |
87 | + @PreInit | |
88 | + public void preload(FMLPreInitializationEvent event) { | |
89 | + Configuration cfg = new Configuration(TcrsCore.getconfigfile("MTC", | |
90 | + "MeinConfig")); | |
91 | + try { | |
92 | + cfg.load(); | |
93 | + Property ExtrablockProp = cfg.get(Configuration.CATEGORY_BLOCK, | |
94 | + "Extrablock", 1850); | |
95 | + Property ExtraObsidianProp = cfg.get(Configuration.CATEGORY_BLOCK, | |
96 | + "ExtraObsidian", 1851); | |
97 | + Property MaterialstoneProp = cfg.get(Configuration.CATEGORY_ITEM, | |
98 | + "Materialstone", 4100); | |
99 | + Property SupercoalProp = cfg.get(Configuration.CATEGORY_ITEM, | |
100 | + "Supercoal", 4101); | |
101 | + Property ExtraObsidianIngotProp = cfg.get( | |
102 | + Configuration.CATEGORY_ITEM, "ExtraObsidianIngot", 4102); | |
103 | + Property ExtraObsidianPickaxeProp = cfg.get( | |
104 | + Configuration.CATEGORY_ITEM, "ExtraObsidianPickaxe", 4103); | |
105 | + Property goldstickProp = cfg.get(Configuration.CATEGORY_ITEM, | |
106 | + "goldstick", 4104); | |
107 | + Property ironstickProp = cfg.get(Configuration.CATEGORY_ITEM, | |
108 | + "ironstick", 4105); | |
109 | + Property ExtraObsidianaxeProp = cfg.get( | |
110 | + Configuration.CATEGORY_ITEM, "ExtraObsidianaxe", 4106); | |
111 | + Property ExtraObsidianshovelProp = cfg.get( | |
112 | + Configuration.CATEGORY_ITEM, "ExtraObsidianshovel", 4107); | |
113 | + Property ExtraObsidianhoeProp = cfg.get( | |
114 | + Configuration.CATEGORY_ITEM, "ExtraObsidianhoe", 4108); | |
115 | + Property ExtraObsidianswordProp = cfg.get( | |
116 | + Configuration.CATEGORY_ITEM, "ExtraObsidiansword", 4109); | |
117 | + Property repairdustLProp = cfg.get(Configuration.CATEGORY_ITEM, | |
118 | + "repairdustL", 4110); | |
119 | + Property repairdustMProp = cfg.get(Configuration.CATEGORY_ITEM, | |
120 | + "repairdustM", 4111); | |
121 | + Property repairdustHProp = cfg.get(Configuration.CATEGORY_ITEM, | |
122 | + "repairdustH", 4112); | |
123 | + ExtrablockID = ExtrablockProp.getInt(); | |
124 | + ExtraObsidianID = ExtraObsidianProp.getInt(); | |
125 | + MaterialstoneID = MaterialstoneProp.getInt(); | |
126 | + SupercoalID = SupercoalProp.getInt(); | |
127 | + ExtraObsidianIngotID = ExtraObsidianIngotProp.getInt(); | |
128 | + ExtraObsidianPickaxeID = ExtraObsidianPickaxeProp.getInt(); | |
129 | + ExtraObsidianaxeID = ExtraObsidianaxeProp.getInt(); | |
130 | + goldstickID = goldstickProp.getInt(); | |
131 | + ironstickID = ironstickProp.getInt(); | |
132 | + ExtraObsidianshovelID = ExtraObsidianshovelProp.getInt(); | |
133 | + ExtraObsidianhoeID = ExtraObsidianhoeProp.getInt(); | |
134 | + ExtraObsidianswordID = ExtraObsidianswordProp.getInt(); | |
135 | + repairid[0] = repairdustLProp.getInt(); | |
136 | + repairid[1] = repairdustMProp.getInt(); | |
137 | + repairid[2] = repairdustHProp.getInt(); | |
138 | + | |
139 | + } catch (Exception e) { | |
140 | + FMLLog.log(Level.SEVERE, e, "error"); | |
141 | + } finally { | |
142 | + cfg.save(); | |
143 | + } | |
144 | + proxy.registerRenderThings(); | |
145 | + registerItem(); | |
146 | + repair.registerItem(); | |
147 | + } | |
148 | + | |
149 | + public void registerItem() { | |
150 | + | |
151 | + ExtraObsidianToolMaterial = EnumHelper.addToolMaterial("ExtraObsidian", | |
152 | + 3, 25600000, 20.0F, 20, 25); | |
153 | + | |
154 | + | |
155 | + Extrablock = (new Extrablock(ExtrablockID,Material.iron, 48)).setBlockName("Extrablock").setHardness(1F).setResistance(5F).setCreativeTab(MTCCreativeTab); | |
156 | + ExtraObsidian = (new ExtraObsidian(ExtraObsidianID,Material.iron, 49)).setBlockName("ExtraObsidian").setHardness(50.0F).setResistance(2000.0F).setCreativeTab(MTCCreativeTab); | |
157 | + Materialstone = (new Materialstone(MaterialstoneID).setItemName("Materialstone").setIconIndex(1)).setCreativeTab(MTCCreativeTab); | |
158 | + Supercoal = (new Supercoal(SupercoalID).setItemName("Supercoal").setIconIndex(2)).setCreativeTab(MTCCreativeTab); | |
159 | + ExtraObsidianIngot = (new SimpleItem(ExtraObsidianIngotID).setItemName("ExtraObsidianIngot").setIconIndex(2)).setCreativeTab(MTCCreativeTab); | |
160 | + ExtraObsidianPickaxe = (new ExtraObsidianPickaxe(ExtraObsidianPickaxeID, ExtraObsidianToolMaterial)).setIconIndex(18).setItemName("ExtraObsidianPickaxe").setCreativeTab(MTCCreativeTab); | |
161 | + ExtraObsidianaxe = (new ExtraObsidianaxe(ExtraObsidianaxeID, ExtraObsidianToolMaterial)).setIconIndex(19).setItemName("ExtraObsidianaxe").setCreativeTab(MTCCreativeTab); | |
162 | + ExtraObsidianshovel = (new ExtraObsidianshovel(ExtraObsidianshovelID, ExtraObsidianToolMaterial)).setIconIndex(17).setItemName("ExtraObsidianshovel").setCreativeTab(MTCCreativeTab); | |
163 | + ExtraObsidianhoe=(new ExtraObsidianhoe(ExtraObsidianhoeID, ExtraObsidianToolMaterial)).setIconIndex(20).setItemName("ExtraObsidianhoe").setCreativeTab(MTCCreativeTab); | |
164 | + ExtraObsidiansword=(new ExtraObsidiansword(ExtraObsidianswordID, ExtraObsidianToolMaterial)).setIconIndex(16).setItemName("ExtraObsidiansword").setCreativeTab(MTCCreativeTab); | |
165 | + goldstick = (new SimpleItem(goldstickID)).setIconIndex(32).setItemName("goldstick").setCreativeTab(MTCCreativeTab); | |
166 | + ironstick = (new SimpleItem(ironstickID)).setIconIndex(33).setItemName("ironstick").setCreativeTab(MTCCreativeTab); | |
167 | + | |
168 | + GameRegistry.registerBlock(Extrablock, "Extrablock"); | |
169 | + GameRegistry.registerBlock(ExtraObsidian, "ExtraObsidian"); | |
170 | + | |
171 | + OreDictionary.registerOre("Materialstone", Materialstone); | |
172 | + OreDictionary.registerOre("Extrablock", Extrablock); | |
173 | + OreDictionary.registerOre("ExtraObsidian", ExtraObsidian); | |
174 | + OreDictionary.registerOre("Supercoal", Supercoal); | |
175 | + | |
176 | + } | |
177 | + | |
178 | + @Init | |
179 | + public void load(FMLInitializationEvent event) { | |
180 | + GameRegistry.registerFuelHandler(new mtcFuel()); | |
181 | + | |
182 | + | |
183 | + Lang.load(instance); | |
184 | + renkin.load(); | |
185 | + repair.load(); | |
186 | + | |
187 | + NetworkRegistry.instance().registerGuiHandler(this, new GuiHander()); | |
188 | + | |
189 | + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Supercoal, 1), | |
190 | + new Object[] { "XXX", "XYX", "XXX", 'X', Item.coal, 'Y', | |
191 | + "Materialstone" })); | |
192 | + | |
193 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.coal, | |
194 | + 8), new Object[] { "Materialstone", Supercoal })); | |
195 | + | |
196 | + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Extrablock), | |
197 | + new Object[] { "XXX", "XYX", "XXX", 'X', Block.blockDiamond, | |
198 | + 'Y', Materialstone })); | |
199 | + | |
200 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
201 | + Block.blockDiamond, 8), new Object[] { "Materialstone", | |
202 | + Extrablock })); | |
203 | + | |
204 | + GameRegistry.addRecipe(new ItemStack(Materialstone), new Object[] { | |
205 | + "XYX", "YDY", "XYX", 'X', Item.redstone, 'Y', Item.blazePowder, | |
206 | + 'D', Item.diamond }); | |
207 | + GameRegistry.addShapelessRecipe(new ItemStack(Materialstone), | |
208 | + new Object[] { new ItemStack(Materialstone, 1), | |
209 | + new ItemStack(Item.blazePowder), | |
210 | + new ItemStack(Item.redstone), | |
211 | + new ItemStack(Item.ingotIron) }); | |
212 | + | |
213 | + GameRegistry.addRecipe(new ShapedOreRecipe( | |
214 | + new ItemStack(ExtraObsidian), new Object[] { "OOO", "OEO", | |
215 | + "OOO", 'O', Block.obsidian, 'E', Extrablock })); | |
216 | + | |
217 | + GameRegistry.addRecipe(new ItemStack(ExtraObsidianPickaxe), | |
218 | + new Object[] { "OOO", " I ", " I ", 'O', ExtraObsidianIngot, | |
219 | + 'I', ironstick }); | |
220 | + GameRegistry.addRecipe(new ItemStack(ExtraObsidianshovel), | |
221 | + new Object[] { " O ", " I ", " I ", 'O', ExtraObsidianIngot, | |
222 | + 'I', ironstick }); | |
223 | + GameRegistry.addRecipe(new ItemStack(ExtraObsidianaxe), new Object[] { | |
224 | + "OO ", "OI ", " I ", 'O', ExtraObsidianIngot, 'I', ironstick }); | |
225 | + GameRegistry.addRecipe(new ItemStack(ExtraObsidianaxe), new Object[] { | |
226 | + " OO", " IO", " I ", 'O', ExtraObsidianIngot, 'I', ironstick }); | |
227 | + GameRegistry.addRecipe(new ItemStack(ExtraObsidianhoe), new Object[] { | |
228 | + " OO", " I ", " I ", 'O', ExtraObsidianIngot, 'I', ironstick }); | |
229 | + GameRegistry.addRecipe(new ItemStack(ExtraObsidianhoe), new Object[] { | |
230 | + "OO ", " I ", " I ", 'O', ExtraObsidianIngot, 'I', ironstick }); | |
231 | + GameRegistry.addRecipe(new ItemStack(ExtraObsidiansword), new Object[] { | |
232 | + " O ", " O ", " I ", 'O', ExtraObsidianIngot, 'I', ironstick }); | |
233 | + GameRegistry.addShapelessRecipe(new ItemStack(ironstick), new Object[] { | |
234 | + new ItemStack(Item.ingotIron), new ItemStack(Item.ingotIron) }); | |
235 | + GameRegistry.addShapelessRecipe(new ItemStack(goldstick), new Object[] { | |
236 | + new ItemStack(Item.ingotGold), new ItemStack(Item.ingotGold) }); | |
237 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.blazeRod), | |
238 | + new Object[] { new ItemStack(goldstick), | |
239 | + new ItemStack(Item.bucketLava) }); | |
240 | + GameRegistry.addSmelting(ExtraObsidian.blockID, new ItemStack( | |
241 | + ExtraObsidianIngot, 4), 100000); | |
242 | + } | |
243 | + | |
244 | +} |
@@ -0,0 +1,20 @@ | ||
1 | +package asia.tcrs.mtc; | |
2 | + | |
3 | +import net.minecraft.item.ItemStack; | |
4 | +import cpw.mods.fml.common.IFuelHandler; | |
5 | + | |
6 | +public class mtcFuel implements IFuelHandler | |
7 | +{ | |
8 | + @Override | |
9 | + public int getBurnTime(ItemStack fuel) | |
10 | + { | |
11 | + if (fuel.itemID == materialconverter.Supercoal.itemID) | |
12 | + { | |
13 | + return 12800; | |
14 | + } | |
15 | + else | |
16 | + { | |
17 | + return 0; | |
18 | + } | |
19 | + } | |
20 | +} |
@@ -0,0 +1,352 @@ | ||
1 | +package asia.tcrs.mtc; | |
2 | + | |
3 | +import net.minecraft.block.Block; | |
4 | +import net.minecraft.item.Item; | |
5 | +import net.minecraft.item.ItemStack; | |
6 | +import net.minecraftforge.oredict.ShapelessOreRecipe; | |
7 | +import cpw.mods.fml.common.registry.GameRegistry; | |
8 | + | |
9 | +public class renkin { | |
10 | + public static void load() { | |
11 | + // かぼちゃの種・スイカの種・小麦の種相互変換 | |
12 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
13 | + Item.pumpkinSeeds), new Object[] { "Materialstone", | |
14 | + Item.melonSeeds })); | |
15 | + GameRegistry.addRecipe(new ShapelessOreRecipe( | |
16 | + new ItemStack(Item.seeds), new Object[] { "Materialstone", | |
17 | + Item.pumpkinSeeds })); | |
18 | + GameRegistry | |
19 | + .addRecipe(new ShapelessOreRecipe( | |
20 | + new ItemStack(Item.melonSeeds), new Object[] { | |
21 | + "Materialstone", Item.seeds })); | |
22 | + // end | |
23 | + | |
24 | + // 丸石<=>砂利 | |
25 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
26 | + Block.gravel), new Object[] { "Materialstone", | |
27 | + new ItemStack(Block.cobblestone), | |
28 | + new ItemStack(Block.cobblestone), | |
29 | + new ItemStack(Block.cobblestone), | |
30 | + new ItemStack(Block.cobblestone) })); | |
31 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
32 | + Block.cobblestone, 4), new Object[] { "Materialstone", | |
33 | + Block.gravel })); | |
34 | + // end | |
35 | + | |
36 | + // 砂利<=>粘土 | |
37 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
38 | + Block.blockClay), new Object[] { "Materialstone", | |
39 | + new ItemStack(Block.gravel), new ItemStack(Block.gravel), | |
40 | + new ItemStack(Block.gravel), new ItemStack(Block.gravel) })); | |
41 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
42 | + Block.gravel, 4), new Object[] { "Materialstone", | |
43 | + Block.blockClay })); | |
44 | + // end | |
45 | + | |
46 | + // 粘土<=>鉄鉱石 | |
47 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
48 | + Block.oreIron), | |
49 | + new Object[] { "Materialstone", new ItemStack(Block.blockClay), | |
50 | + new ItemStack(Block.blockClay), | |
51 | + new ItemStack(Block.blockClay), | |
52 | + new ItemStack(Block.blockClay), | |
53 | + new ItemStack(Block.blockClay), | |
54 | + new ItemStack(Block.blockClay), | |
55 | + new ItemStack(Block.blockClay), | |
56 | + new ItemStack(Block.blockClay) })); | |
57 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
58 | + Block.blockClay, 8), new Object[] { "Materialstone", | |
59 | + Block.oreIron })); | |
60 | + // end | |
61 | + | |
62 | + // 鉄鉱石<=>金鉱石 | |
63 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
64 | + Block.oreGold), new Object[] { "Materialstone", | |
65 | + new ItemStack(Block.oreIron), new ItemStack(Block.oreIron), | |
66 | + new ItemStack(Block.oreIron), new ItemStack(Block.oreIron) })); | |
67 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
68 | + Block.oreIron, 4), new Object[] { "Materialstone", | |
69 | + Block.oreGold })); | |
70 | + // end | |
71 | + | |
72 | + // 金鉱石<=>ダイア鉱石 | |
73 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
74 | + Block.oreDiamond), new Object[] { "Materialstone", | |
75 | + new ItemStack(Block.oreGold), new ItemStack(Block.oreGold), | |
76 | + new ItemStack(Block.oreGold), new ItemStack(Block.oreGold) })); | |
77 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
78 | + Block.oreGold, 4), new Object[] { "Materialstone", | |
79 | + Block.oreDiamond })); | |
80 | + // end | |
81 | + | |
82 | + // 鉄インゴット<=>黒曜石 | |
83 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
84 | + Block.obsidian), new Object[] { "Materialstone", | |
85 | + new ItemStack(Block.oreGold), new ItemStack(Item.ingotIron), | |
86 | + new ItemStack(Item.ingotIron) })); | |
87 | + // end | |
88 | + | |
89 | + // 鉄インゴット<=>金インゴット | |
90 | + GameRegistry | |
91 | + .addRecipe(new ShapelessOreRecipe( | |
92 | + new ItemStack(Item.ingotGold), new Object[] { | |
93 | + "Materialstone", new ItemStack(Item.ingotIron), | |
94 | + new ItemStack(Item.ingotIron), | |
95 | + new ItemStack(Item.ingotIron), | |
96 | + new ItemStack(Item.ingotIron) })); | |
97 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
98 | + Item.ingotIron, 4), new Object[] { "Materialstone", | |
99 | + Item.ingotGold })); | |
100 | + // end | |
101 | + // 鉄インゴット<=>金インゴット | |
102 | + GameRegistry | |
103 | + .addRecipe(new ShapelessOreRecipe(new ItemStack(Item.diamond), | |
104 | + new Object[] { "Materialstone", | |
105 | + new ItemStack(Item.ingotGold), | |
106 | + new ItemStack(Item.ingotGold), | |
107 | + new ItemStack(Item.ingotGold), | |
108 | + new ItemStack(Item.ingotGold), | |
109 | + new ItemStack(Item.ingotGold), | |
110 | + new ItemStack(Item.ingotGold), | |
111 | + new ItemStack(Item.ingotGold), | |
112 | + new ItemStack(Item.ingotGold) })); | |
113 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
114 | + Item.ingotGold, 8), new Object[] { "Materialstone", | |
115 | + Item.diamond })); | |
116 | + // end | |
117 | + | |
118 | + // ソウルサンド | |
119 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
120 | + Block.slowSand), new Object[] { "Materialstone", | |
121 | + new ItemStack(Block.cobblestone), | |
122 | + new ItemStack(Block.glowStone) })); | |
123 | + // end | |
124 | + | |
125 | + // スライムボール | |
126 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.slimeBall), | |
127 | + new Object[] { new ItemStack(Item.bucketWater, 1), | |
128 | + new ItemStack(Block.sapling, -1), | |
129 | + new ItemStack(Item.seeds), new ItemStack(Item.reed) }); | |
130 | + // end | |
131 | + | |
132 | + // エンダーパール | |
133 | + GameRegistry | |
134 | + .addRecipe(new ShapelessOreRecipe(new ItemStack( | |
135 | + Item.enderPearl, 4), new Object[] { "Materialstone", | |
136 | + new ItemStack(Item.ingotGold), | |
137 | + new ItemStack(Item.ingotGold) })); | |
138 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
139 | + Item.ingotGold), | |
140 | + new Object[] { "Materialstone", new ItemStack(Item.enderPearl), | |
141 | + new ItemStack(Item.enderPearl) })); | |
142 | + // end | |
143 | + | |
144 | + // emerald | |
145 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
146 | + Item.emerald), new Object[] { "Materialstone", | |
147 | + new ItemStack(Item.ingotGold), new ItemStack(Item.ingotGold), | |
148 | + new ItemStack(Item.ingotGold) })); | |
149 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
150 | + Item.ingotGold, 3), new Object[] { "Materialstone", | |
151 | + new ItemStack(Item.emerald) })); | |
152 | + // end | |
153 | + | |
154 | + // woodloop | |
155 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.wood, | |
156 | + 1, 1), new Object[] { "Materialstone", | |
157 | + new ItemStack(Block.wood, 1, 0) })); | |
158 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.wood, | |
159 | + 1, 2), new Object[] { "Materialstone", | |
160 | + new ItemStack(Block.wood, 1, 1) })); | |
161 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.wood, | |
162 | + 1, 3), new Object[] { "Materialstone", | |
163 | + new ItemStack(Block.wood, 1, 2) })); | |
164 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.wood, | |
165 | + 1, 0), new Object[] { "Materialstone", | |
166 | + new ItemStack(Block.wood, 1, 3) })); | |
167 | + // end | |
168 | + | |
169 | + // planksloop | |
170 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
171 | + Block.planks, 1, 1), new Object[] { "Materialstone", | |
172 | + new ItemStack(Block.planks, 1, 0) })); | |
173 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
174 | + Block.planks, 1, 2), new Object[] { "Materialstone", | |
175 | + new ItemStack(Block.planks, 1, 1) })); | |
176 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
177 | + Block.planks, 1, 3), new Object[] { "Materialstone", | |
178 | + new ItemStack(Block.planks, 2, 1) })); | |
179 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
180 | + Block.planks, 1, 0), new Object[] { "Materialstone", | |
181 | + new ItemStack(Block.planks, 1, 3) })); | |
182 | + // end | |
183 | + | |
184 | + // saplingloop | |
185 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
186 | + Block.sapling, 1, 1), new Object[] { "Materialstone", | |
187 | + new ItemStack(Block.sapling, 1, 0) })); | |
188 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
189 | + Block.sapling, 1, 2), new Object[] { "Materialstone", | |
190 | + new ItemStack(Block.sapling, 1, 1) })); | |
191 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
192 | + Block.sapling, 1, 3), new Object[] { "Materialstone", | |
193 | + new ItemStack(Block.sapling, 2, 1) })); | |
194 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
195 | + Block.sapling, 1, 0), new Object[] { "Materialstone", | |
196 | + new ItemStack(Block.sapling, 1, 3) })); | |
197 | + // end | |
198 | + | |
199 | + // ラピスラズリ<=>黒曜石 | |
200 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
201 | + Item.dyePowder, 1, 4), new Object[] { "Materialstone", | |
202 | + new ItemStack(Block.obsidian) })); | |
203 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
204 | + Block.obsidian), new Object[] { "Materialstone", | |
205 | + new ItemStack(Item.dyePowder, 1, 4) })); | |
206 | + // end | |
207 | + | |
208 | + // ラピスブロック+黒曜石->ダイア2 | |
209 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
210 | + Item.diamond, 2), new Object[] { "Materialstone", | |
211 | + new ItemStack(Block.obsidian), new ItemStack(Block.blockLapis), | |
212 | + new ItemStack(Block.blockLapis), | |
213 | + new ItemStack(Block.blockLapis), | |
214 | + new ItemStack(Block.blockLapis), | |
215 | + new ItemStack(Block.blockLapis), | |
216 | + new ItemStack(Block.blockLapis), | |
217 | + new ItemStack(Block.blockLapis) })); | |
218 | + // end | |
219 | + | |
220 | + // 鉄I=Gdust6 | |
221 | + GameRegistry | |
222 | + .addRecipe(new ShapelessOreRecipe( | |
223 | + new ItemStack(Item.ingotIron), new Object[] { | |
224 | + "Materialstone", new ItemStack(Item.lightStoneDust), | |
225 | + new ItemStack(Item.lightStoneDust), | |
226 | + new ItemStack(Item.lightStoneDust), | |
227 | + new ItemStack(Item.lightStoneDust), | |
228 | + new ItemStack(Item.lightStoneDust), | |
229 | + new ItemStack(Item.lightStoneDust) })); | |
230 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
231 | + Item.lightStoneDust, 6), new Object[] { "Materialstone", | |
232 | + new ItemStack(Item.ingotIron) })); | |
233 | + // end | |
234 | + | |
235 | + // 木炭=砂利 | |
236 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.coal, | |
237 | + 3, 1), new Object[] { "Materialstone", | |
238 | + new ItemStack(Block.gravel), new ItemStack(Block.gravel) })); | |
239 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
240 | + Block.gravel, 2), new Object[] { "Materialstone", | |
241 | + new ItemStack(Item.coal, 1, 1), new ItemStack(Item.coal, 1, 1), | |
242 | + new ItemStack(Item.coal, 1, 1) })); | |
243 | + // end | |
244 | + | |
245 | + // 石炭=木炭4 | |
246 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.coal), | |
247 | + new Object[] { "Materialstone", new ItemStack(Item.coal, 1, 1), | |
248 | + new ItemStack(Item.coal, 1, 1), | |
249 | + new ItemStack(Item.coal, 1, 1), | |
250 | + new ItemStack(Item.coal, 1, 1) })); | |
251 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.coal, | |
252 | + 4, 1), | |
253 | + new Object[] { "Materialstone", new ItemStack(Item.coal) })); | |
254 | + // end | |
255 | + | |
256 | + // 石炭2=赤石3 | |
257 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.coal, | |
258 | + 2), new Object[] { "Materialstone", | |
259 | + new ItemStack(Item.redstone), new ItemStack(Item.redstone), | |
260 | + new ItemStack(Item.redstone) })); | |
261 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
262 | + Item.redstone, 3), new Object[] { "Materialstone", | |
263 | + new ItemStack(Item.coal), new ItemStack(Item.coal) })); | |
264 | + // end | |
265 | + | |
266 | + // 砂糖8=赤石 | |
267 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
268 | + Item.redstone), new Object[] { "Materialstone", | |
269 | + new ItemStack(Item.sugar), new ItemStack(Item.sugar), | |
270 | + new ItemStack(Item.sugar), new ItemStack(Item.sugar), | |
271 | + new ItemStack(Item.sugar), new ItemStack(Item.sugar), | |
272 | + new ItemStack(Item.sugar), new ItemStack(Item.sugar) })); | |
273 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.sugar, | |
274 | + 8), new Object[] { "Materialstone", | |
275 | + new ItemStack(Item.redstone) })); | |
276 | + // end | |
277 | + | |
278 | + // 石炭4=Gdust1 | |
279 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
280 | + Item.lightStoneDust), new Object[] { "Materialstone", | |
281 | + new ItemStack(Item.coal, 1), new ItemStack(Item.coal, 1), | |
282 | + new ItemStack(Item.coal, 1), new ItemStack(Item.coal, 1) })); | |
283 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.coal, | |
284 | + 4), new Object[] { "Materialstone", | |
285 | + new ItemStack(Item.lightStoneDust) })); | |
286 | + // end | |
287 | + | |
288 | + // 赤石4=火薬 | |
289 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
290 | + Item.gunpowder), new Object[] { "Materialstone", | |
291 | + new ItemStack(Item.redstone), new ItemStack(Item.redstone), | |
292 | + new ItemStack(Item.redstone), new ItemStack(Item.redstone) })); | |
293 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
294 | + Item.redstone, 4), new Object[] { "Materialstone", | |
295 | + new ItemStack(Item.gunpowder) })); | |
296 | + // end | |
297 | + | |
298 | + // 赤石6=Gdust | |
299 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
300 | + Item.lightStoneDust), new Object[] { "Materialstone", | |
301 | + new ItemStack(Item.redstone), new ItemStack(Item.redstone), | |
302 | + new ItemStack(Item.redstone), new ItemStack(Item.redstone), | |
303 | + new ItemStack(Item.redstone), new ItemStack(Item.redstone) })); | |
304 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
305 | + Item.redstone, 6), new Object[] { "Materialstone", | |
306 | + new ItemStack(Item.lightStoneDust) })); | |
307 | + // end | |
308 | + | |
309 | + // 火薬6=グローストーン | |
310 | + GameRegistry | |
311 | + .addRecipe(new ShapelessOreRecipe( | |
312 | + new ItemStack(Block.glowStone), new Object[] { | |
313 | + "Materialstone", new ItemStack(Item.gunpowder), | |
314 | + new ItemStack(Item.gunpowder), | |
315 | + new ItemStack(Item.gunpowder), | |
316 | + new ItemStack(Item.gunpowder), | |
317 | + new ItemStack(Item.gunpowder), | |
318 | + new ItemStack(Item.gunpowder) })); | |
319 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
320 | + Item.gunpowder, 6), new Object[] { "Materialstone", | |
321 | + new ItemStack(Block.glowStone) })); | |
322 | + // end | |
323 | + | |
324 | + // 鉄CB4=金CB | |
325 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
326 | + Block.blockGold), | |
327 | + new Object[] { "Materialstone", new ItemStack(Block.blockSteel), | |
328 | + new ItemStack(Block.blockSteel), | |
329 | + new ItemStack(Block.blockSteel), | |
330 | + new ItemStack(Block.blockSteel) })); | |
331 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
332 | + Block.blockSteel, 4), new Object[] { "Materialstone", | |
333 | + new ItemStack(Block.blockGold) })); | |
334 | + // end | |
335 | + | |
336 | + // 金CB8=ダイアCB | |
337 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
338 | + Block.blockDiamond), | |
339 | + new Object[] { "Materialstone", new ItemStack(Block.blockGold), | |
340 | + new ItemStack(Block.blockGold), | |
341 | + new ItemStack(Block.blockGold), | |
342 | + new ItemStack(Block.blockGold), | |
343 | + new ItemStack(Block.blockGold), | |
344 | + new ItemStack(Block.blockGold), | |
345 | + new ItemStack(Block.blockGold), | |
346 | + new ItemStack(Block.blockGold) })); | |
347 | + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack( | |
348 | + Block.blockGold, 8), new Object[] { "Materialstone", | |
349 | + new ItemStack(Block.blockDiamond) })); | |
350 | + // end | |
351 | + } | |
352 | +} |
@@ -0,0 +1,245 @@ | ||
1 | +package asia.tcrs.mtc; | |
2 | + | |
3 | +import java.util.logging.Level; | |
4 | + | |
5 | +import cpw.mods.fml.common.FMLLog; | |
6 | +import cpw.mods.fml.common.Mod.Init; | |
7 | +import cpw.mods.fml.common.Mod.PreInit; | |
8 | +import cpw.mods.fml.common.event.FMLInitializationEvent; | |
9 | +import cpw.mods.fml.common.event.FMLPreInitializationEvent; | |
10 | +import cpw.mods.fml.common.registry.GameRegistry; | |
11 | +import cpw.mods.fml.common.registry.LanguageRegistry; | |
12 | +import net.minecraft.block.Block; | |
13 | +import net.minecraft.creativetab.CreativeTabs; | |
14 | +import net.minecraft.item.Item; | |
15 | +import net.minecraft.item.ItemStack; | |
16 | +import net.minecraftforge.common.Configuration; | |
17 | +import asia.tcrs.mtc.Item.*; | |
18 | + | |
19 | +public class repair { | |
20 | + static int[] repairid = materialconverter.repairid; | |
21 | + public static Item repairdustL; | |
22 | + public static Item repairdustM; | |
23 | + public static Item repairdustH; | |
24 | + | |
25 | + public static int repairdustL_ID; | |
26 | + public static int repairdustM_ID; | |
27 | + public static int repairdustH_ID; | |
28 | + | |
29 | + public static void registerItem() | |
30 | + { | |
31 | + repairdustL_ID = repairid[0]; | |
32 | + repairdustM_ID = repairid[1]; | |
33 | + repairdustH_ID = repairid[2]; | |
34 | + | |
35 | + CreativeTabs MTCCreativeTab = materialconverter.MTCCreativeTab; | |
36 | + repairdustL = (new repairdustL(repairdustL_ID).setItemName("repairdustL").setIconIndex(3)).setCreativeTab(MTCCreativeTab); | |
37 | + repairdustM = (new repairdustM(repairdustM_ID).setItemName("repairdustM").setIconIndex(4)).setCreativeTab(MTCCreativeTab); | |
38 | + repairdustH = (new repairdustH(repairdustH_ID).setItemName("repairdustH").setIconIndex(5)).setCreativeTab(MTCCreativeTab); | |
39 | + } | |
40 | + | |
41 | + public static void load() | |
42 | + { | |
43 | + Item Materialstone = materialconverter.Materialstone; | |
44 | + LanguageRegistry.addName(repairdustL, "Repairdust(Low)"); | |
45 | + LanguageRegistry.addName(repairdustM, "Repairdust(Middle)"); | |
46 | + LanguageRegistry.addName(repairdustH, "Repairdust(High)"); | |
47 | + GameRegistry.addShapelessRecipe(new ItemStack(repairdustL ,10), | |
48 | + new Object[] | |
49 | + { | |
50 | + new ItemStack(Materialstone, 1), new ItemStack(Block.cobblestone), new ItemStack(Block.cobblestone) | |
51 | + , new ItemStack(Block.cobblestone), new ItemStack(Block.cobblestone) | |
52 | + , new ItemStack(Block.cobblestone), new ItemStack(Block.cobblestone) | |
53 | + , new ItemStack(Block.cobblestone), new ItemStack(Item.coal ,1)}); | |
54 | + GameRegistry.addShapelessRecipe(new ItemStack(repairdustM ,10), | |
55 | + new Object[] | |
56 | + { | |
57 | + new ItemStack(Materialstone, 1), new ItemStack(Item.coal), | |
58 | + new ItemStack(Item.ingotIron), new ItemStack(Item.ingotIron), | |
59 | + new ItemStack(Item.ingotIron), new ItemStack(Item.ingotIron)}); | |
60 | + GameRegistry.addShapelessRecipe(new ItemStack(repairdustH ,10), | |
61 | + new Object[] | |
62 | + { | |
63 | + new ItemStack(Materialstone, 1), new ItemStack(Item.coal), new ItemStack(Item.diamond)}); | |
64 | + int D = Short.MAX_VALUE; | |
65 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.helmetLeather), | |
66 | + new Object[]{ | |
67 | + new ItemStack(Item.helmetLeather, 1,D), new ItemStack(repairdustL)}); | |
68 | + | |
69 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.plateLeather), | |
70 | + new Object[]{ | |
71 | + new ItemStack(Item.plateLeather, 1,D), new ItemStack(repairdustL)}); | |
72 | + | |
73 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.legsLeather), | |
74 | + new Object[]{ | |
75 | + new ItemStack(Item.legsLeather, 1,D), new ItemStack(repairdustL)}); | |
76 | + | |
77 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.bootsLeather), | |
78 | + new Object[]{ | |
79 | + new ItemStack(Item.bootsLeather, 1,D), new ItemStack(repairdustL)}); | |
80 | + | |
81 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.swordWood), | |
82 | + new Object[]{ | |
83 | + new ItemStack(Item.swordWood, 1,D), new ItemStack(repairdustL)}); | |
84 | + | |
85 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.pickaxeWood), | |
86 | + new Object[]{ | |
87 | + new ItemStack(Item.pickaxeWood, 1,D), new ItemStack(repairdustL)}); | |
88 | + | |
89 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.shovelWood), | |
90 | + new Object[]{ | |
91 | + new ItemStack(Item.shovelWood, 1,D), new ItemStack(repairdustL)}); | |
92 | + | |
93 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.axeWood), | |
94 | + new Object[]{ | |
95 | + new ItemStack(Item.axeWood, 1,D), new ItemStack(repairdustL)}); | |
96 | + | |
97 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.hoeWood), | |
98 | + new Object[]{ | |
99 | + new ItemStack(Item.hoeWood, 1,D), new ItemStack(repairdustL)}); | |
100 | + | |
101 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.swordStone), | |
102 | + new Object[]{ | |
103 | + new ItemStack(Item.swordStone, 1,D), new ItemStack(repairdustL)}); | |
104 | + | |
105 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.pickaxeStone), | |
106 | + new Object[]{ | |
107 | + new ItemStack(Item.pickaxeStone, 1,D), new ItemStack(repairdustL)}); | |
108 | + | |
109 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.shovelStone), | |
110 | + new Object[]{ | |
111 | + new ItemStack(Item.shovelStone, 1,D), new ItemStack(repairdustL)}); | |
112 | + | |
113 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.axeStone), | |
114 | + new Object[]{ | |
115 | + new ItemStack(Item.axeStone, 1,D), new ItemStack(repairdustL)}); | |
116 | + | |
117 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.hoeStone), | |
118 | + new Object[]{ | |
119 | + new ItemStack(Item.hoeStone, 1,D), new ItemStack(repairdustL)}); | |
120 | + | |
121 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.fishingRod), | |
122 | + new Object[]{ | |
123 | + new ItemStack(Item.fishingRod, 1,D), new ItemStack(repairdustL)}); | |
124 | + | |
125 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.bow), | |
126 | + new Object[]{ | |
127 | + new ItemStack(Item.bow, 1,D), new ItemStack(repairdustL)}); | |
128 | + | |
129 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.helmetSteel), | |
130 | + new Object[]{ | |
131 | + new ItemStack(Item.helmetSteel, 1,D), new ItemStack(repairdustM)}); | |
132 | + | |
133 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.plateSteel), | |
134 | + new Object[]{ | |
135 | + new ItemStack(Item.plateSteel, 1,D), new ItemStack(repairdustM)}); | |
136 | + | |
137 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.legsSteel), | |
138 | + new Object[]{ | |
139 | + new ItemStack(Item.legsSteel, 1,D), new ItemStack(repairdustM)}); | |
140 | + | |
141 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.bootsSteel), | |
142 | + new Object[]{ | |
143 | + new ItemStack(Item.bootsSteel, 1,D), new ItemStack(repairdustM)}); | |
144 | + | |
145 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.helmetGold), | |
146 | + new Object[]{ | |
147 | + new ItemStack(Item.helmetGold, 1,D), new ItemStack(repairdustM)}); | |
148 | + | |
149 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.plateGold), | |
150 | + new Object[]{ | |
151 | + new ItemStack(Item.plateGold, 1,D), new ItemStack(repairdustM)}); | |
152 | + | |
153 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.legsGold), | |
154 | + new Object[]{ | |
155 | + new ItemStack(Item.legsGold, 1,D), new ItemStack(repairdustM)}); | |
156 | + | |
157 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.bootsGold), | |
158 | + new Object[]{ | |
159 | + new ItemStack(Item.bootsGold, 1,D), new ItemStack(repairdustM)}); | |
160 | + | |
161 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.swordSteel), | |
162 | + new Object[]{ | |
163 | + new ItemStack(Item.swordSteel, 1,D), new ItemStack(repairdustM)}); | |
164 | + | |
165 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.pickaxeSteel), | |
166 | + new Object[]{ | |
167 | + new ItemStack(Item.pickaxeSteel, 1,D), new ItemStack(repairdustM)}); | |
168 | + | |
169 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.shovelSteel), | |
170 | + new Object[]{ | |
171 | + new ItemStack(Item.shovelSteel, 1,D), new ItemStack(repairdustM)}); | |
172 | + | |
173 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.axeSteel), | |
174 | + new Object[]{ | |
175 | + new ItemStack(Item.axeSteel, 1,D), new ItemStack(repairdustM)}); | |
176 | + | |
177 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.hoeSteel), | |
178 | + new Object[]{ | |
179 | + new ItemStack(Item.hoeSteel, 1,D), new ItemStack(repairdustM)}); | |
180 | + | |
181 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.flintAndSteel), | |
182 | + new Object[]{ | |
183 | + new ItemStack(Item.flintAndSteel, 1,D), new ItemStack(repairdustM)}); | |
184 | + | |
185 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.shears), | |
186 | + new Object[]{ | |
187 | + new ItemStack(Item.shears, 1,D), new ItemStack(repairdustM)}); | |
188 | + | |
189 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.swordGold), | |
190 | + new Object[]{ | |
191 | + new ItemStack(Item.swordGold, 1,D), new ItemStack(repairdustM)}); | |
192 | + | |
193 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.pickaxeGold), | |
194 | + new Object[]{ | |
195 | + new ItemStack(Item.pickaxeGold, 1,D), new ItemStack(repairdustM)}); | |
196 | + | |
197 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.shovelGold), | |
198 | + new Object[]{ | |
199 | + new ItemStack(Item.shovelGold, 1,D), new ItemStack(repairdustM)}); | |
200 | + | |
201 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.axeGold), | |
202 | + new Object[]{ | |
203 | + new ItemStack(Item.axeGold, 1,D), new ItemStack(repairdustM)}); | |
204 | + | |
205 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.hoeGold), | |
206 | + new Object[]{ | |
207 | + new ItemStack(Item.hoeGold, 1,D), new ItemStack(repairdustM)}); | |
208 | + | |
209 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.helmetDiamond), | |
210 | + new Object[]{ | |
211 | + new ItemStack(Item.helmetDiamond, 1,D), new ItemStack(repairdustH)}); | |
212 | + | |
213 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.plateDiamond), | |
214 | + new Object[]{ | |
215 | + new ItemStack(Item.plateDiamond, 1,D), new ItemStack(repairdustH)}); | |
216 | + | |
217 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.legsDiamond), | |
218 | + new Object[]{ | |
219 | + new ItemStack(Item.legsDiamond, 1,D), new ItemStack(repairdustH)}); | |
220 | + | |
221 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.bootsDiamond), | |
222 | + new Object[]{ | |
223 | + new ItemStack(Item.bootsDiamond, 1,D), new ItemStack(repairdustH)}); | |
224 | + | |
225 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.swordDiamond), | |
226 | + new Object[]{ | |
227 | + new ItemStack(Item.swordDiamond, 1,D), new ItemStack(repairdustH)}); | |
228 | + | |
229 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.pickaxeDiamond), | |
230 | + new Object[]{ | |
231 | + new ItemStack(Item.pickaxeDiamond, 1,D), new ItemStack(repairdustH)}); | |
232 | + | |
233 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.shovelDiamond), | |
234 | + new Object[]{ | |
235 | + new ItemStack(Item.shovelDiamond, 1,D), new ItemStack(repairdustH)}); | |
236 | + | |
237 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.axeDiamond), | |
238 | + new Object[]{ | |
239 | + new ItemStack(Item.axeDiamond, 1,D), new ItemStack(repairdustH)}); | |
240 | + | |
241 | + GameRegistry.addShapelessRecipe(new ItemStack(Item.hoeDiamond), | |
242 | + new Object[]{ | |
243 | + new ItemStack(Item.hoeDiamond, 1,D), new ItemStack(repairdustH)}); | |
244 | + } | |
245 | +} |
@@ -0,0 +1,681 @@ | ||
1 | +package asia.tcrs.mtc; | |
2 | + | |
3 | +import net.minecraft.block.Block; | |
4 | +import net.minecraft.item.Item; | |
5 | +import net.minecraft.item.ItemMap; | |
6 | +import net.minecraft.item.ItemShears; | |
7 | +import net.minecraft.item.ItemStack; | |
8 | +import cpw.mods.fml.common.Mod; | |
9 | +import cpw.mods.fml.common.Mod.Init; | |
10 | +import cpw.mods.fml.common.event.FMLInitializationEvent; | |
11 | +import cpw.mods.fml.common.network.NetworkMod; | |
12 | +import cpw.mods.fml.common.registry.GameRegistry; | |
13 | + | |
14 | +public class uncraft { | |
15 | + @Init | |
16 | + public static void load() | |
17 | + { | |
18 | +// Item Materialstone = materialconverter.Materialstone; | |
19 | +// int D = 0; | |
20 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,6), | |
21 | +// new Object[]{ | |
22 | +// new ItemStack(Item.doorWood, 1), new ItemStack(Materialstone)}); | |
23 | +// | |
24 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,6), | |
25 | +// new Object[]{ | |
26 | +// new ItemStack(Item.doorSteel, 1), new ItemStack(Materialstone)}); | |
27 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.cobblestone,8), | |
28 | +// new Object[]{ | |
29 | +// new ItemStack(Block.stoneOvenIdle, 1), new ItemStack(Materialstone)});// | |
30 | +// | |
31 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,8), | |
32 | +// new Object[]{ | |
33 | +// new ItemStack(Block.chest, 1), new ItemStack(Materialstone)});// | |
34 | +// | |
35 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,4), | |
36 | +// new Object[]{ | |
37 | +// new ItemStack(Block.workbench, 1), new ItemStack(Materialstone)});// | |
38 | +// | |
39 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,8), | |
40 | +// new Object[]{ | |
41 | +// new ItemStack(Block.chest, 1), new ItemStack(Materialstone)});// | |
42 | +// | |
43 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,5), | |
44 | +// new Object[]{ | |
45 | +// new ItemStack(Item.boat, 1), new ItemStack(Materialstone)});// | |
46 | +// | |
47 | +// GameRegistry.addRecipe(new ItemStack(Block.planks,1), | |
48 | +// new Object[]{"XX", | |
49 | +// "Y", | |
50 | +// Character.valueOf('X'),Item.stick, | |
51 | +// Character.valueOf('Y'),Materialstone});// | |
52 | +// | |
53 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,5), | |
54 | +// new Object[]{ | |
55 | +// new ItemStack(Item.minecartEmpty, 1), new ItemStack(Materialstone)});// | |
56 | +// | |
57 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.reed,1), | |
58 | +// new Object[]{ | |
59 | +// new ItemStack(Item.paper, 1), new ItemStack(Materialstone)});// | |
60 | +// | |
61 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.leather,1), | |
62 | +// new Object[]{ | |
63 | +// new ItemStack(Item.book, 1), new ItemStack(Materialstone)});// | |
64 | +// | |
65 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.wheat,3), | |
66 | +// new Object[]{ | |
67 | +// new ItemStack(Item.bread, 1), new ItemStack(Materialstone)});// | |
68 | +// | |
69 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.reed,1), | |
70 | +// new Object[]{ | |
71 | +// new ItemStack(Item.sugar, 1), new ItemStack(Materialstone)});// | |
72 | +// | |
73 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.stick,3), | |
74 | +// new Object[]{ | |
75 | +// new ItemStack(Block.fence, 1), new ItemStack(Materialstone)});// | |
76 | +// | |
77 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.stick,13), | |
78 | +// new Object[]{ | |
79 | +// new ItemStack(Item.sign, 1), new ItemStack(Materialstone)});// | |
80 | +// | |
81 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.reed,3), | |
82 | +// new Object[]{ | |
83 | +// new ItemStack(Item.paper, 1), new ItemStack(Materialstone)});// | |
84 | +// | |
85 | +// GameRegistry.addRecipe(new ItemStack(Block.planks,3), | |
86 | +// new Object[]{"XX", | |
87 | +// "Y", | |
88 | +// Character.valueOf('X'),Block.stairCompactPlanks, | |
89 | +// Character.valueOf('Y'),Materialstone});// | |
90 | +// | |
91 | +// GameRegistry.addRecipe(new ItemStack(Block.cobblestone,3), | |
92 | +// new Object[]{"XX", | |
93 | +// "Y", | |
94 | +// Character.valueOf('X'),Block.stairCompactCobblestone, | |
95 | +// Character.valueOf('Y'),Materialstone });// | |
96 | +// | |
97 | +// GameRegistry.addRecipe(new ItemStack(Block.brick,3), | |
98 | +// new Object[]{"XX", | |
99 | +// Character.valueOf('X'),Block.stairsBrick });// | |
100 | +// | |
101 | +// GameRegistry.addRecipe(new ItemStack(Block.stoneBrick,3), | |
102 | +// new Object[]{"XX", | |
103 | +// Character.valueOf('X'),Block.stairsStoneBrickSmooth }); | |
104 | +// | |
105 | +// GameRegistry.addRecipe(new ItemStack(Block.wood,1), | |
106 | +// new Object[]{"X X"," ","X X", | |
107 | +// Character.valueOf('X'),Block.planks }); | |
108 | +// | |
109 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.goldNugget,8), | |
110 | +// new Object[]{ | |
111 | +// new ItemStack(Item.appleGold, 1)}); | |
112 | +// | |
113 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotGold,8), | |
114 | +// new Object[]{ | |
115 | +// new ItemStack(Item.appleGold, 1,1)}); | |
116 | +// | |
117 | +// | |
118 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.cloth,3,0), | |
119 | +// new Object[]{ | |
120 | +// new ItemStack(Item.bed, 1)}); | |
121 | +// | |
122 | +// GameRegistry.addRecipe(new ItemStack(Item.coal,1,0), | |
123 | +// new Object[]{"XX","XX", | |
124 | +// Character.valueOf('X'),Block.torchWood }); | |
125 | +// | |
126 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.stick,8), | |
127 | +// new Object[]{ | |
128 | +// new ItemStack(Item.painting, 1)}); | |
129 | +// | |
130 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.clay,4), | |
131 | +// new Object[]{ | |
132 | +// new ItemStack(Block.blockClay, 1)}); | |
133 | +// | |
134 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.snowball,4), | |
135 | +// new Object[]{ | |
136 | +// new ItemStack(Block.blockSnow, 1)}); | |
137 | +// | |
138 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.brick,4), | |
139 | +// new Object[]{ | |
140 | +// new ItemStack(Block.brick, 1)}); | |
141 | +// | |
142 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.stone,1), | |
143 | +// new Object[]{ | |
144 | +// new ItemStack(Block.stoneBrick, 1)}); | |
145 | +// | |
146 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.sand,4), | |
147 | +// new Object[]{ | |
148 | +// new ItemStack(Block.sandStone, 1)}); | |
149 | +// | |
150 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.redstone,1), | |
151 | +// new Object[]{ | |
152 | +// new ItemStack(Block.music, 1)}); | |
153 | +// | |
154 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.diamond,1), | |
155 | +// new Object[]{ | |
156 | +// new ItemStack(Block.jukebox, 1)}); | |
157 | +// | |
158 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.gunpowder,5), | |
159 | +// new Object[]{ | |
160 | +// new ItemStack(Block.tnt, 1)});//tnt | |
161 | +// | |
162 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.pumpkin,1), | |
163 | +// new Object[]{ | |
164 | +// new ItemStack(Block.pumpkinLantern, 1)}); | |
165 | +// | |
166 | +// GameRegistry.addRecipe(new ItemStack(Block.planks,3), | |
167 | +// new Object[]{"XX","XX", | |
168 | +// Character.valueOf('X'),Item.bowlEmpty }); | |
169 | +// | |
170 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.lightStoneDust,4), | |
171 | +// new Object[]{ | |
172 | +// new ItemStack(Block.glowStone, 1)}); | |
173 | +// | |
174 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.silk,4), | |
175 | +// new Object[]{ | |
176 | +// new ItemStack(Block.cloth,1,0)}); | |
177 | +// | |
178 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.stone,2), | |
179 | +// new Object[]{ | |
180 | +// new ItemStack(Block.stoneButton, 1)}); | |
181 | +// | |
182 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,3), | |
183 | +// new Object[]{ | |
184 | +// new ItemStack(Item.bucketEmpty, 1)}); | |
185 | +// | |
186 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotGold,4), | |
187 | +// new Object[]{ | |
188 | +// new ItemStack(Item.pocketSundial, 1)}); | |
189 | +// | |
190 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,4), | |
191 | +// new Object[]{ | |
192 | +// new ItemStack(Item.compass, 1)}); | |
193 | +// | |
194 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.silk,2), | |
195 | +// new Object[]{ | |
196 | +// new ItemStack(Item.fishingRod, 1)}); | |
197 | +// | |
198 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.silk,3), | |
199 | +// new Object[]{ | |
200 | +// new ItemStack(Item.bow, 1)}); | |
201 | +// | |
202 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotGold,1), | |
203 | +// new Object[]{ | |
204 | +// new ItemStack(Block.railPowered, 1)}); | |
205 | +// | |
206 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,1), | |
207 | +// new Object[]{ | |
208 | +// new ItemStack(Block.railDetector, 1)}); | |
209 | +// | |
210 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.bow,1), | |
211 | +// new Object[]{ | |
212 | +// new ItemStack(Block.dispenser, 1)}); | |
213 | +// | |
214 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,2), | |
215 | +// new Object[]{ | |
216 | +// new ItemStack(ItemShears.shears, 1)}); | |
217 | +// | |
218 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.compass,1), | |
219 | +// new Object[]{ | |
220 | +// new ItemStack(ItemMap.map, 1)}); | |
221 | +// | |
222 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,1), | |
223 | +// new Object[]{ | |
224 | +// new ItemStack(Block.pistonBase, 1)}); | |
225 | +// | |
226 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.slimeBall,1), | |
227 | +// new Object[]{ | |
228 | +// new ItemStack(Block.pistonStickyBase, 1)}); | |
229 | +// | |
230 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,3), | |
231 | +// new Object[]{ | |
232 | +// new ItemStack(Block.trapdoor, 1)}); | |
233 | +// | |
234 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,2), | |
235 | +// new Object[]{ | |
236 | +// new ItemStack(Block.pressurePlatePlanks, 1)}); | |
237 | +// | |
238 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.stone,2), | |
239 | +// new Object[]{ | |
240 | +// new ItemStack(Block.pressurePlateStone, 1)}); | |
241 | +// | |
242 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.redstone,1), | |
243 | +// new Object[]{ | |
244 | +// new ItemStack(Block.torchRedstoneActive, 1)}); | |
245 | +// | |
246 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.stick,1), | |
247 | +// new Object[]{ | |
248 | +// new ItemStack(Block.lever, 1)}); | |
249 | +// | |
250 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.wheat,3), | |
251 | +// new Object[]{ | |
252 | +// new ItemStack(Block.cake, 1)}); | |
253 | +// | |
254 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.wheat,3), | |
255 | +// new Object[]{ | |
256 | +// new ItemStack(Item.cake, 1)}); | |
257 | +// | |
258 | +// GameRegistry.addRecipe(new ItemStack(Item.wheat,1), | |
259 | +// new Object[]{"XX","XX", | |
260 | +// Character.valueOf('X'),Item.cookie }); | |
261 | +// | |
262 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,14), | |
263 | +// new Object[]{ | |
264 | +// new ItemStack(Block.cloth,1,1)});// | |
265 | +// | |
266 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,13), | |
267 | +// new Object[]{ | |
268 | +// new ItemStack(Block.cloth,1,2)});// | |
269 | +// | |
270 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,12), | |
271 | +// new Object[]{ | |
272 | +// new ItemStack(Block.cloth,1,3)});// | |
273 | +// | |
274 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,11), | |
275 | +// new Object[]{ | |
276 | +// new ItemStack(Block.cloth,1,4)});// | |
277 | +// | |
278 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,10), | |
279 | +// new Object[]{ | |
280 | +// new ItemStack(Block.cloth,1,5)}); | |
281 | +// | |
282 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,9), | |
283 | +// new Object[]{ | |
284 | +// new ItemStack(Block.cloth,1,6)}); | |
285 | +// | |
286 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,8), | |
287 | +// new Object[]{ | |
288 | +// new ItemStack(Block.cloth,1,7)}); | |
289 | +// | |
290 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,7), | |
291 | +// new Object[]{ | |
292 | +// new ItemStack(Block.cloth,1,8)}); | |
293 | +// | |
294 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,6), | |
295 | +// new Object[]{ | |
296 | +// new ItemStack(Block.cloth,1,9)}); | |
297 | +// | |
298 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,5), | |
299 | +// new Object[]{ | |
300 | +// new ItemStack(Block.cloth,1,10)});// | |
301 | +// | |
302 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,4), | |
303 | +// new Object[]{ | |
304 | +// new ItemStack(Block.cloth,1,11)});// | |
305 | +// | |
306 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,3), | |
307 | +// new Object[]{ | |
308 | +// new ItemStack(Block.cloth,1,12)}); | |
309 | +// | |
310 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,2), | |
311 | +// new Object[]{ | |
312 | +// new ItemStack(Block.cloth,1,13)}); | |
313 | +// | |
314 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,1), | |
315 | +// new Object[]{ | |
316 | +// new ItemStack(Block.cloth,1,14)}); | |
317 | +// | |
318 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder,1,0), | |
319 | +// new Object[]{ | |
320 | +// new ItemStack(Block.cloth,1,15)}); | |
321 | +// | |
322 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.book,3), | |
323 | +// new Object[]{ | |
324 | +// new ItemStack(Block.bookShelf, 1)}); | |
325 | +// | |
326 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.leather,5), | |
327 | +// new Object[]{ | |
328 | +// new ItemStack(Item.helmetLeather, 1,D)}); | |
329 | +// | |
330 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.leather,8), | |
331 | +// new Object[]{ | |
332 | +// new ItemStack(Item.plateLeather, 1,D)}); | |
333 | +// | |
334 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.leather,7), | |
335 | +// new Object[]{ | |
336 | +// new ItemStack(Item.legsLeather, 1,D)});// | |
337 | +// | |
338 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.leather,4), | |
339 | +// new Object[]{ | |
340 | +// new ItemStack(Item.bootsLeather, 1,D)});// | |
341 | +// | |
342 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,5), | |
343 | +// new Object[]{ | |
344 | +// new ItemStack(Item.helmetSteel, 1,D)}); | |
345 | +// | |
346 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,8), | |
347 | +// new Object[]{ | |
348 | +// new ItemStack(Item.plateSteel, 1,D)}); | |
349 | +// | |
350 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,7), | |
351 | +// new Object[]{ | |
352 | +// new ItemStack(Item.legsSteel, 1,D)}); | |
353 | +// | |
354 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,4), | |
355 | +// new Object[]{ | |
356 | +// new ItemStack(Item.bootsSteel, 1,D)}); | |
357 | +// | |
358 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotGold,5), | |
359 | +// new Object[]{ | |
360 | +// new ItemStack(Item.helmetGold, 1,D)}); | |
361 | +// | |
362 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotGold,8), | |
363 | +// new Object[]{ | |
364 | +// new ItemStack(Item.plateGold, 1,D)}); | |
365 | +// | |
366 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotGold,7), | |
367 | +// new Object[]{ | |
368 | +// new ItemStack(Item.legsGold, 1,D)}); | |
369 | +// | |
370 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotGold,4), | |
371 | +// new Object[]{ | |
372 | +// new ItemStack(Item.bootsGold, 1,D)}); | |
373 | +// | |
374 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.diamond,5), | |
375 | +// new Object[]{ | |
376 | +// new ItemStack(Item.helmetDiamond, 1,D)}); | |
377 | +// | |
378 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.diamond,8), | |
379 | +// new Object[]{ | |
380 | +// new ItemStack(Item.plateDiamond, 1,D)}); | |
381 | +// | |
382 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.diamond,7), | |
383 | +// new Object[]{ | |
384 | +// new ItemStack(Item.legsDiamond, 1,D)}); | |
385 | +// | |
386 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.diamond,4), | |
387 | +// new Object[]{ | |
388 | +// new ItemStack(Item.bootsDiamond, 1,D)}); | |
389 | +// | |
390 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.stick,5), | |
391 | +// new Object[]{ | |
392 | +// new ItemStack(Item.swordWood, 1,D)}); | |
393 | +// | |
394 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,4), | |
395 | +// new Object[]{ | |
396 | +// new ItemStack(Item.pickaxeWood, 1,D)}); | |
397 | +// | |
398 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,2), | |
399 | +// new Object[]{ | |
400 | +// new ItemStack(Item.shovelWood, 1,D)}); | |
401 | +// | |
402 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,4), | |
403 | +// new Object[]{ | |
404 | +// new ItemStack(Item.axeWood, 1,D)}); | |
405 | +// | |
406 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,3), | |
407 | +// new Object[]{ | |
408 | +// new ItemStack(Item.hoeWood, 1,D)}); | |
409 | +// | |
410 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.cobblestone,2), | |
411 | +// new Object[]{ | |
412 | +// new ItemStack(Item.swordStone, 1,D)}); | |
413 | +// | |
414 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.cobblestone,3), | |
415 | +// new Object[]{ | |
416 | +// new ItemStack(Item.pickaxeStone, 1,D)}); | |
417 | +// | |
418 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.cobblestone,1), | |
419 | +// new Object[]{ | |
420 | +// new ItemStack(Item.shovelStone, 1,D)}); | |
421 | +// | |
422 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.cobblestone,3), | |
423 | +// new Object[]{ | |
424 | +// new ItemStack(Item.axeStone, 1,D)}); | |
425 | +// | |
426 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.cobblestone,2), | |
427 | +// new Object[]{ | |
428 | +// new ItemStack(Item.hoeStone, 1,D)}); | |
429 | +// | |
430 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,2), | |
431 | +// new Object[]{ | |
432 | +// new ItemStack(Item.swordSteel, 1,D)}); | |
433 | +// | |
434 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,3), | |
435 | +// new Object[]{ | |
436 | +// new ItemStack(Item.pickaxeSteel, 1,D)}); | |
437 | +// | |
438 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,1), | |
439 | +// new Object[]{ | |
440 | +// new ItemStack(Item.shovelSteel, 1,D)}); | |
441 | +// | |
442 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,3), | |
443 | +// new Object[]{ | |
444 | +// new ItemStack(Item.axeSteel, 1,D)}); | |
445 | +// | |
446 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,2), | |
447 | +// new Object[]{ | |
448 | +// new ItemStack(Item.hoeSteel, 1,D)}); | |
449 | +// | |
450 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotGold,2), | |
451 | +// new Object[]{ | |
452 | +// new ItemStack(Item.swordGold, 1,D)});// | |
453 | +// | |
454 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotGold,3), | |
455 | +// new Object[]{ | |
456 | +// new ItemStack(Item.pickaxeGold, 1,D)});// | |
457 | +// | |
458 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotGold,1), | |
459 | +// new Object[]{ | |
460 | +// new ItemStack(Item.shovelGold, 1,D)});// | |
461 | +// | |
462 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotGold,3), | |
463 | +// new Object[]{ | |
464 | +// new ItemStack(Item.axeGold, 1,D)});// | |
465 | +// | |
466 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotGold,2), | |
467 | +// new Object[]{ | |
468 | +// new ItemStack(Item.hoeGold, 1,D)});// | |
469 | +// | |
470 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.diamond,2), | |
471 | +// new Object[]{ | |
472 | +// new ItemStack(Item.swordDiamond, 1,D)});// | |
473 | +// | |
474 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.diamond,3), | |
475 | +// new Object[]{ | |
476 | +// new ItemStack(Item.pickaxeDiamond, 1,D)});// | |
477 | +// | |
478 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.diamond,1), | |
479 | +// new Object[]{ | |
480 | +// new ItemStack(Item.shovelDiamond, 1,D)});// | |
481 | +// | |
482 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.diamond,3), | |
483 | +// new Object[]{ | |
484 | +// new ItemStack(Item.axeDiamond, 1,D)});// | |
485 | +// | |
486 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.diamond,2), | |
487 | +// new Object[]{ | |
488 | +// new ItemStack(Item.hoeDiamond, 1,D)}); | |
489 | +// | |
490 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.melon,9), | |
491 | +// new Object[]{ | |
492 | +// new ItemStack(Block.melon, 1)});// | |
493 | +// | |
494 | +// GameRegistry.addRecipe(new ItemStack(Item.ingotIron,3), | |
495 | +// new Object[]{"XXX","X X","XXX", | |
496 | +// Character.valueOf('X'),Block.rail });// | |
497 | +// | |
498 | +// GameRegistry.addRecipe(new ItemStack(Block.glass,3), | |
499 | +// new Object[]{"XXX","X X","XXX", | |
500 | +// Character.valueOf('X'),Block.thinGlass });// | |
501 | +// | |
502 | +// GameRegistry.addRecipe(new ItemStack(Item.ingotIron,3), | |
503 | +// new Object[]{"XXX","X X","XXX", | |
504 | +// Character.valueOf('X'),Block.fenceIron }); | |
505 | +// | |
506 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,4), | |
507 | +// new Object[]{ | |
508 | +// new ItemStack(Block.fenceGate, 1)});// | |
509 | +// | |
510 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.chest,1), | |
511 | +// new Object[]{ | |
512 | +// new ItemStack(Item.minecartCrate, 1)});// | |
513 | +// | |
514 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.stoneOvenIdle,1), | |
515 | +// new Object[]{ | |
516 | +// new ItemStack(Item.minecartPowered, 1)});// | |
517 | +// | |
518 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.torchRedstoneActive,2), | |
519 | +// new Object[]{ | |
520 | +// new ItemStack(Item.redstoneRepeater, 1)});// | |
521 | +// | |
522 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.melon,1), | |
523 | +// new Object[]{ | |
524 | +// new ItemStack(Item.melonSeeds, 1)});// | |
525 | +// | |
526 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.bone,1), | |
527 | +// new Object[]{ | |
528 | +// new ItemStack(Item.dyePowder,1,15),new ItemStack(Item.dyePowder,1,15),new ItemStack(Item.dyePowder,1,15)});// | |
529 | +// | |
530 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.pumpkinSeeds,2), | |
531 | +// new Object[]{ | |
532 | +// new ItemStack(Block.pumpkin, 1)});// | |
533 | +// | |
534 | +// /* | |
535 | +// GameRegistry.AddShapelessRecipe(new ItemStack(Item.pumpkinSeeds,2), | |
536 | +// new Object[]{ | |
537 | +// new ItemStack(Block.pumpkin, 1)});// | |
538 | +// */ | |
539 | +// | |
540 | +// GameRegistry.addRecipe(new ItemStack(Block.pumpkin,1), | |
541 | +// new Object[]{"XX ","XX ", | |
542 | +// Character.valueOf('X'),Item.pumpkinSeeds }); | |
543 | +// | |
544 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.netherBrick,1), | |
545 | +// new Object[]{ | |
546 | +// new ItemStack(Block.netherFence, 1)}); | |
547 | +// | |
548 | +// GameRegistry.addRecipe(new ItemStack(Block.netherBrick,3), | |
549 | +// new Object[]{"XX", | |
550 | +// Character.valueOf('X'),Block.stairsNetherBrick }); | |
551 | +// | |
552 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.blazePowder,1), | |
553 | +// new Object[]{ | |
554 | +// new ItemStack(Item.magmaCream, 1)});// | |
555 | +// | |
556 | +// GameRegistry.addRecipe(new ItemStack(Item.blazeRod,1), | |
557 | +// new Object[]{"XX", | |
558 | +// Character.valueOf('X'),Item.blazePowder });// | |
559 | +// | |
560 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.spiderEye,1), | |
561 | +// new Object[]{ | |
562 | +// new ItemStack(Item.fermentedSpiderEye, 1)});// | |
563 | +// | |
564 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.goldNugget,1), | |
565 | +// new Object[]{ | |
566 | +// new ItemStack(Item.speckledMelon, 1)});// | |
567 | +// | |
568 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.glass,1), | |
569 | +// new Object[]{ | |
570 | +// new ItemStack(Item.glassBottle, 1)});// | |
571 | +// | |
572 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron,7), | |
573 | +// new Object[]{ | |
574 | +// new ItemStack(Item.cauldron, 1)}); | |
575 | +// | |
576 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.diamond,2), | |
577 | +// new Object[]{ | |
578 | +// new ItemStack(Block.enchantmentTable, 1)}); | |
579 | +// | |
580 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.blazeRod,1), | |
581 | +// new Object[]{ | |
582 | +// new ItemStack(Item.brewingStand, 1)}); | |
583 | +// | |
584 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.blazePowder,1), | |
585 | +// new Object[]{ | |
586 | +// new ItemStack(Item.eyeOfEnder, 1)}); | |
587 | +// | |
588 | +// GameRegistry.addRecipe(new ItemStack(Item.flint,1), | |
589 | +// new Object[]{"XX ","XX ", | |
590 | +// Character.valueOf('X'),Item.arrow }); | |
591 | +// | |
592 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.flint,1), | |
593 | +// new Object[]{ | |
594 | +// new ItemStack(Block.gravel, 1)}); | |
595 | +// | |
596 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.bucketLava,1), | |
597 | +// new Object[]{ | |
598 | +// new ItemStack(Item.bucketEmpty, 1),new ItemStack(Block.obsidian, 1)}); | |
599 | +// | |
600 | +// for(int i = 1;i<16;i++){ | |
601 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.cloth,1,0), | |
602 | +// new Object[]{ | |
603 | +// new ItemStack(Item.bucketWater, 1),new ItemStack(Block.cloth,1,i)});//1 | |
604 | +// } | |
605 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.ice,1), | |
606 | +// new Object[]{ | |
607 | +// new ItemStack(Item.bucketWater, 1),new ItemStack(Item.snowball,1)}); | |
608 | +// | |
609 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.gravel,1), | |
610 | +// new Object[]{ | |
611 | +// new ItemStack(Item.flint, 1)});// | |
612 | +// | |
613 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.stick,7), | |
614 | +// new Object[]{ | |
615 | +// new ItemStack(Block.ladder, 1),new ItemStack(Block.ladder, 1),new ItemStack(Block.ladder, 1)});// | |
616 | +// | |
617 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.stone,1), | |
618 | +// new Object[]{ | |
619 | +// new ItemStack(Block.stoneSingleSlab, 1,0),new ItemStack(Block.stoneSingleSlab, 1,0)});// | |
620 | +// | |
621 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.sandStone,1), | |
622 | +// new Object[]{ | |
623 | +// new ItemStack(Block.stoneSingleSlab, 1,1),new ItemStack(Block.stoneSingleSlab, 1,1)});// | |
624 | +// | |
625 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,1), | |
626 | +// new Object[]{ | |
627 | +// new ItemStack(Block.woodSingleSlab, 1),new ItemStack(Block.woodSingleSlab, 1)});// | |
628 | +// | |
629 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.cobblestone,1), | |
630 | +// new Object[]{ | |
631 | +// new ItemStack(Block.stoneSingleSlab, 1,3),new ItemStack(Block.stoneSingleSlab, 1,3)});// | |
632 | +// | |
633 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.brick,1), | |
634 | +// new Object[]{ | |
635 | +// new ItemStack(Block.stoneSingleSlab, 1,4),new ItemStack(Block.stoneSingleSlab, 1,4)});// | |
636 | +// | |
637 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.stoneBrick,1), | |
638 | +// new Object[]{ | |
639 | +// new ItemStack(Block.stoneSingleSlab, 1,5),new ItemStack(Block.stoneSingleSlab, 1,5)}); | |
640 | +// | |
641 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,1), | |
642 | +// new Object[]{ | |
643 | +// new ItemStack(Block.woodSingleSlab, 1),new ItemStack(Block.woodSingleSlab, 1)});// | |
644 | +// | |
645 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,1,1), | |
646 | +// new Object[]{ | |
647 | +// new ItemStack(Block.woodSingleSlab, 1,1),new ItemStack(Block.woodSingleSlab, 1,1)});// | |
648 | +// | |
649 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,1,2), | |
650 | +// new Object[]{ | |
651 | +// new ItemStack(Block.woodSingleSlab, 1,2),new ItemStack(Block.woodSingleSlab, 1,2)});// | |
652 | +// | |
653 | +// GameRegistry.addShapelessRecipe(new ItemStack(Block.planks,1,3), | |
654 | +// new Object[]{ | |
655 | +// new ItemStack(Block.woodSingleSlab, 1,3),new ItemStack(Block.woodSingleSlab, 1,3)});// | |
656 | +// | |
657 | +// | |
658 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.redstone, 4), | |
659 | +// new Object[]{ | |
660 | +// new ItemStack(Block.redstoneLampIdle, 1)}); | |
661 | +// | |
662 | +// GameRegistry.addRecipe(new ItemStack(Block.sandStone,3), | |
663 | +// new Object[]{"XX", | |
664 | +// Character.valueOf('X'),Block.stairsSandStone });// | |
665 | +// | |
666 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.ingotIron, 1), | |
667 | +// new Object[]{ | |
668 | +// new ItemStack(Block.tripWireSource, 1)}); | |
669 | +// | |
670 | +// | |
671 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.eyeOfEnder, 1), | |
672 | +// new Object[]{ | |
673 | +// new ItemStack(Block.enderChest, 1)}); | |
674 | +// | |
675 | +// GameRegistry.addShapelessRecipe(new ItemStack(Item.book, 1), | |
676 | +// new Object[]{ | |
677 | +// new ItemStack(Item.writableBook, 1)}); | |
678 | + | |
679 | + } | |
680 | + | |
681 | +} |
@@ -0,0 +1,82 @@ | ||
1 | +package asia.tcrs.tcrscore; | |
2 | + | |
3 | +import java.io.File; | |
4 | + | |
5 | +import net.minecraft.item.Item; | |
6 | +import net.minecraft.item.ItemStack; | |
7 | + | |
8 | +import cpw.mods.fml.common.Mod; | |
9 | +import cpw.mods.fml.common.Mod.Init; | |
10 | +import cpw.mods.fml.common.Mod.PreInit; | |
11 | +import cpw.mods.fml.common.event.FMLInitializationEvent; | |
12 | +import cpw.mods.fml.common.event.FMLPreInitializationEvent; | |
13 | +import cpw.mods.fml.common.network.NetworkMod; | |
14 | + | |
15 | +/** | |
16 | + * TcrsCore(無印)互換レイヤー<br> | |
17 | + * 新規に開発・バージョンアップする場合はこのクラスではなくTcrsCoreの方へ<br> | |
18 | + * <br> | |
19 | + * Copyright (c) 2012~2013, TcrsSoft<br> | |
20 | + * All rights reserved.<br> | |
21 | + * New BSD license<br> | |
22 | + * <br> | |
23 | + * @author inaka | |
24 | + * | |
25 | + **/ | |
26 | +@Mod(modid = "TcrsCore", name = "TcrsCore", version = "TcrsCore2"+TcrsCore.TCRSCORE_VERSION) | |
27 | +@NetworkMod(clientSideRequired = true, serverSideRequired = false) | |
28 | +public class A_tcrscore { | |
29 | + | |
30 | + @Deprecated | |
31 | + @PreInit | |
32 | + public void preInit(FMLPreInitializationEvent event) | |
33 | + { | |
34 | + | |
35 | + } | |
36 | + | |
37 | + @Deprecated | |
38 | + @Init | |
39 | + public void load(FMLInitializationEvent event) | |
40 | + { | |
41 | + | |
42 | + } | |
43 | + | |
44 | + @Deprecated | |
45 | + public static void displayError(String error) { | |
46 | + | |
47 | + } | |
48 | + | |
49 | + @Deprecated | |
50 | + public static File getconfigDir() { | |
51 | + return TcrsCore.configdir; | |
52 | + } | |
53 | + | |
54 | + @Deprecated | |
55 | + public static File getconfigpas(String filename) { | |
56 | + return TcrsCore.getconfigfile(filename); | |
57 | + } | |
58 | + | |
59 | + @Deprecated | |
60 | + public static void addChatMessage(String text) | |
61 | + { | |
62 | + Platform.addChatMessage(text); | |
63 | + } | |
64 | + | |
65 | + @Deprecated | |
66 | + public static boolean sanboru() { | |
67 | + return false; | |
68 | + } | |
69 | + | |
70 | + @Deprecated | |
71 | + public static void delitem(Item par1Item) | |
72 | + { | |
73 | + TcrsCore.delitem(par1Item); | |
74 | + } | |
75 | + | |
76 | + @Deprecated | |
77 | + public static void DeleteRecipe(ItemStack par1ItemStack) | |
78 | + { | |
79 | + TcrsCore.DeleteCraftingRecipe(par1ItemStack); | |
80 | + } | |
81 | + | |
82 | +} |
@@ -0,0 +1,38 @@ | ||
1 | +package asia.tcrs.tcrscore; | |
2 | + | |
3 | +import cpw.mods.fml.relauncher.Side; | |
4 | +import cpw.mods.fml.relauncher.SideOnly; | |
5 | +import net.minecraft.creativetab.CreativeTabs; | |
6 | +import net.minecraft.item.Item; | |
7 | + | |
8 | +public class BaseCreativeTab extends CreativeTabs { | |
9 | + | |
10 | + static Item IconItem; | |
11 | + private String TransLabel; | |
12 | + | |
13 | + public BaseCreativeTab(String label, String argTransLabel) { | |
14 | + super(label); | |
15 | + TransLabel=argTransLabel; | |
16 | + | |
17 | + } | |
18 | + @SideOnly(Side.CLIENT) | |
19 | + public void setTabIconItem(Item ItemIcon) | |
20 | + { | |
21 | + IconItem=ItemIcon; | |
22 | + } | |
23 | + | |
24 | + @Override | |
25 | + @SideOnly(Side.CLIENT) | |
26 | + public Item getTabIconItem() | |
27 | + { | |
28 | + return IconItem; | |
29 | + } | |
30 | + | |
31 | + @Override | |
32 | + @SideOnly(Side.CLIENT) | |
33 | + public String getTranslatedTabLabel() | |
34 | + { | |
35 | + return TransLabel; | |
36 | + } | |
37 | + | |
38 | +} |
@@ -0,0 +1,24 @@ | ||
1 | +package asia.tcrs.tcrscore; | |
2 | + | |
3 | +import cpw.mods.fml.common.Mod.Init; | |
4 | +import cpw.mods.fml.common.Mod.PreInit; | |
5 | +import cpw.mods.fml.common.event.FMLInitializationEvent; | |
6 | +import cpw.mods.fml.common.event.FMLPreInitializationEvent; | |
7 | + | |
8 | +public class BaseMODs { | |
9 | + | |
10 | + | |
11 | + | |
12 | + @PreInit | |
13 | + public void preload(FMLPreInitializationEvent Event) | |
14 | + { | |
15 | + | |
16 | + } | |
17 | + | |
18 | + @Init | |
19 | + public void load(FMLInitializationEvent event) | |
20 | + { | |
21 | + | |
22 | + } | |
23 | + | |
24 | +} |
@@ -0,0 +1,34 @@ | ||
1 | +package asia.tcrs.tcrscore; | |
2 | + | |
3 | +import java.io.File; | |
4 | +import java.util.Iterator; | |
5 | +import java.util.List; | |
6 | + | |
7 | +import net.minecraft.item.Item; | |
8 | +import net.minecraft.item.ItemStack; | |
9 | +import net.minecraft.item.crafting.CraftingManager; | |
10 | +import net.minecraft.item.crafting.IRecipe; | |
11 | +import net.minecraft.server.MinecraftServer; | |
12 | + | |
13 | +import cpw.mods.fml.client.FMLClientHandler; | |
14 | +/** | |
15 | + * サーバー側処理<br> | |
16 | + * <br> | |
17 | + * Copyright (c) 2012~2013, TcrsSoft<br> | |
18 | + * All rights reserved.<br> | |
19 | + * New BSD license<br> | |
20 | + * <br> | |
21 | + * @author inaka | |
22 | + * | |
23 | + */ | |
24 | +public class Platform { | |
25 | + | |
26 | + public static void displayError(String error,String modname) { | |
27 | + throw new RuntimeException((modname+" Error\n\n=== "+modname+" Error ===\n\n" + error + "\n\n===============================\n").replace("\n", System.getProperty("line.separator"))); | |
28 | + } | |
29 | + | |
30 | + public static void addChatMessage(String text) | |
31 | + { | |
32 | + | |
33 | + } | |
34 | +} |
@@ -0,0 +1,36 @@ | ||
1 | +package asia.tcrs.tcrscore; | |
2 | + | |
3 | +import java.io.File; | |
4 | +import java.util.Iterator; | |
5 | +import java.util.List; | |
6 | + | |
7 | + | |
8 | +import net.minecraft.client.Minecraft; | |
9 | +import net.minecraft.item.Item; | |
10 | +import net.minecraft.item.ItemStack; | |
11 | +import net.minecraft.item.crafting.CraftingManager; | |
12 | +import net.minecraft.item.crafting.IRecipe; | |
13 | +import cpw.mods.fml.client.FMLClientHandler; | |
14 | +/** | |
15 | + * クライアント側処理<br> | |
16 | + * <br> | |
17 | + * Copyright (c) 2012~2013, TcrsSoft<br> | |
18 | + * All rights reserved.<br> | |
19 | + * New BSD license<br> | |
20 | + * <br> | |
21 | + * @author inaka | |
22 | + * | |
23 | + */ | |
24 | +public class PlatformClient extends Platform{ | |
25 | + | |
26 | + public static final String MODSHORTNAME = "TcrsCore2 mods"; | |
27 | + public static void displayError(String error) { | |
28 | + throw new RuntimeException((MODSHORTNAME+" Error\n\n=== "+MODSHORTNAME+" Error ===\n\n" + error + "\n\n===============================\n").replace("\n", System.getProperty("line.separator"))); | |
29 | + } | |
30 | + | |
31 | + public static void addChatMessage(String text) | |
32 | + { | |
33 | + FMLClientHandler.instance().getClient().thePlayer.addChatMessage(text); | |
34 | + } | |
35 | + | |
36 | +} |
@@ -0,0 +1,114 @@ | ||
1 | +package asia.tcrs.tcrscore; | |
2 | + | |
3 | +import java.io.File; | |
4 | +import java.util.Arrays; | |
5 | +import java.util.Iterator; | |
6 | +import java.util.List; | |
7 | +import java.util.Map; | |
8 | + | |
9 | +import net.minecraft.item.Item; | |
10 | +import net.minecraft.item.ItemStack; | |
11 | +import net.minecraft.item.crafting.CraftingManager; | |
12 | +import net.minecraft.item.crafting.FurnaceRecipes; | |
13 | +import net.minecraft.item.crafting.IRecipe; | |
14 | +import cpw.mods.fml.common.Mod; | |
15 | +import cpw.mods.fml.common.Mod.Init; | |
16 | +import cpw.mods.fml.common.Mod.PreInit; | |
17 | +import cpw.mods.fml.common.SidedProxy; | |
18 | +import cpw.mods.fml.common.event.FMLInitializationEvent; | |
19 | +import cpw.mods.fml.common.event.FMLPreInitializationEvent; | |
20 | +import cpw.mods.fml.common.network.NetworkMod; | |
21 | + | |
22 | +/** | |
23 | + * TcrsSoft関係MODおよびChemiCraftNextの前提MOD<br> | |
24 | + * <br> | |
25 | + * Copyright (c) 2012~2013, TcrsSoft<br> | |
26 | + * All rights reserved.<br> | |
27 | + * New BSD license<br> | |
28 | + * <br> | |
29 | + * | |
30 | + * @author inaka | |
31 | + * | |
32 | + */ | |
33 | +@Mod(modid = "TcrsCore2", name = "TcrsCore2", version = TcrsCore.TCRSCORE_VERSION) | |
34 | +@NetworkMod(clientSideRequired = true, serverSideRequired = false) | |
35 | +public class TcrsCore { | |
36 | + public static UserNameOnKick UserNameOnKick = new UserNameOnKick(); | |
37 | + public static File configdir; | |
38 | + public static final String TCRSCORE_VERSION = "2.1"; | |
39 | + public static final String MC_VERSION = "1.5.x"; | |
40 | + | |
41 | + @SidedProxy(clientSide = "asia.tcrs.tcrscore.PlatformClient", serverSide = "asia.tcrs.tcrscore.Platform") | |
42 | + public static Platform Platform; | |
43 | + | |
44 | + @PreInit | |
45 | + public void preload(FMLPreInitializationEvent Event) { | |
46 | + configdir = Event.getModConfigurationDirectory(); | |
47 | + } | |
48 | + | |
49 | + @Init | |
50 | + public void load(FMLInitializationEvent event) { | |
51 | + | |
52 | + } | |
53 | + | |
54 | + public static File getconfigfile(String dir, String filename) { | |
55 | + File configfile = new File(new File(configdir, dir), filename + ".cfg"); | |
56 | + return configfile; | |
57 | + } | |
58 | + | |
59 | + public static File getconfigfile(String filename) { | |
60 | + File configfile = new File(configdir, filename + ".cfg"); | |
61 | + return configfile; | |
62 | + } | |
63 | + | |
64 | + public static File getconfigfile(File configdir, String dir, String filename) { | |
65 | + File configfile = new File(new File(configdir, dir), filename + ".cfg"); | |
66 | + return configfile; | |
67 | + } | |
68 | + | |
69 | + public static File getconfigfile(File configdir, String filename) { | |
70 | + File configfile = new File(configdir, filename + ".cfg"); | |
71 | + return configfile; | |
72 | + } | |
73 | + | |
74 | + public static void delitem(Item par1Item) { | |
75 | + DeleteCraftingRecipe(new ItemStack(par1Item)); | |
76 | + } | |
77 | + | |
78 | + public static void DeleteCraftingRecipe(ItemStack par1ItemStack) { | |
79 | + List recipes = CraftingManager.getInstance().getRecipeList(); | |
80 | + | |
81 | + for (Iterator i = recipes.listIterator(); i.hasNext();) { | |
82 | + IRecipe recipe = (IRecipe) i.next(); | |
83 | + ItemStack is = recipe.getRecipeOutput(); | |
84 | + | |
85 | + if (is != null) { | |
86 | + if (is.itemID == par1ItemStack.itemID) { | |
87 | + i.remove(); | |
88 | + } | |
89 | + } | |
90 | + } | |
91 | + } | |
92 | + | |
93 | + public static void addChatMessage(String text) { | |
94 | + Platform.addChatMessage(text); | |
95 | + } | |
96 | + | |
97 | + public static void DeleteSmeltingRecipe(ItemStack Par1ItemStack) { | |
98 | + Map<List<Integer>, ItemStack> recipesMeta = FurnaceRecipes.smelting() | |
99 | + .getMetaSmeltingList(); | |
100 | + Map<Integer, ItemStack> recipes = FurnaceRecipes.smelting() | |
101 | + .getSmeltingList(); | |
102 | + if (Par1ItemStack.isItemDamaged() | |
103 | + && recipesMeta.containsKey(Arrays.asList(Par1ItemStack.itemID, | |
104 | + Par1ItemStack.getItemDamage()))) { | |
105 | + recipesMeta.remove(Arrays.asList(Par1ItemStack.itemID, | |
106 | + Par1ItemStack.getItemDamage())); | |
107 | + } | |
108 | + | |
109 | + if (!Par1ItemStack.isItemDamaged() | |
110 | + && recipes.containsKey(Par1ItemStack.itemID)) { | |
111 | + recipes.remove(Par1ItemStack.itemID); | |
112 | + } | |
113 | + } | |
114 | +} |
@@ -0,0 +1,43 @@ | ||
1 | +package asia.tcrs.tcrscore; | |
2 | + | |
3 | +import net.minecraft.client.Minecraft; | |
4 | + | |
5 | +/** | |
6 | + * Copyright (c) 2012~2013, TcrsSoft<br> | |
7 | + * All rights reserved.<br> | |
8 | + * New BSD license<br> | |
9 | + * <br> | |
10 | + * @author 無銘七誌,inaka | |
11 | + * | |
12 | + */ | |
13 | +public final class UserNameOnKick { | |
14 | + | |
15 | + /** | |
16 | + * ユーザー名を直接string型で指定 | |
17 | + * @param username 蹴りたいユーザ名 | |
18 | + */ | |
19 | + public static void kick(String username) { | |
20 | + try { | |
21 | + if (Minecraft.getMinecraft().session.username.equals(username)) | |
22 | + throw new RuntimeException("You are a Criminal!"); | |
23 | + } catch (Exception e) { | |
24 | + return; | |
25 | + } | |
26 | + } | |
27 | + | |
28 | + /** | |
29 | + * ユーザー名をコード見ただけではわからないよう隠蔽 | |
30 | + * @param asciiCodes 隠ぺいしたID | |
31 | + */ | |
32 | + public static void kick(byte[] asciiCodes) { | |
33 | + String resultString; | |
34 | + try { | |
35 | + resultString = new String(asciiCodes, "US-ASCII"); | |
36 | + } catch (Exception e) { | |
37 | + e.printStackTrace(); | |
38 | + return; | |
39 | + } | |
40 | + kick(resultString); | |
41 | + } | |
42 | + | |
43 | +} |
@@ -0,0 +1,5 @@ | ||
1 | +package asia.tcrs.tcrscore.mmvs.Block; | |
2 | + | |
3 | +public class MMVS_Block { | |
4 | + | |
5 | +} |
@@ -0,0 +1,241 @@ | ||
1 | +package asia.tcrs.tcrscore.mmvs.Item; | |
2 | + | |
3 | +import net.minecraft.block.Block; | |
4 | +import net.minecraft.block.material.Material; | |
5 | +import net.minecraft.creativetab.CreativeTabs; | |
6 | +import net.minecraft.entity.item.EntityItemFrame; | |
7 | +import net.minecraft.entity.item.EntityPainting; | |
8 | +import net.minecraft.item.EnumArmorMaterial; | |
9 | +import net.minecraft.item.EnumToolMaterial; | |
10 | +import net.minecraft.item.Item; | |
11 | +import net.minecraft.item.ItemAppleGold; | |
12 | +import net.minecraft.item.ItemArmor; | |
13 | +import net.minecraft.item.ItemAxe; | |
14 | +import net.minecraft.item.ItemBed; | |
15 | +import net.minecraft.item.ItemBoat; | |
16 | +import net.minecraft.item.ItemBook; | |
17 | +import net.minecraft.item.ItemBow; | |
18 | +import net.minecraft.item.ItemBucket; | |
19 | +import net.minecraft.item.ItemBucketMilk; | |
20 | +import net.minecraft.item.ItemCarrotOnAStick; | |
21 | +import net.minecraft.item.ItemCoal; | |
22 | +import net.minecraft.item.ItemDoor; | |
23 | +import net.minecraft.item.ItemDye; | |
24 | +import net.minecraft.item.ItemEditableBook; | |
25 | +import net.minecraft.item.ItemEgg; | |
26 | +import net.minecraft.item.ItemEmptyMap; | |
27 | +import net.minecraft.item.ItemEnchantedBook; | |
28 | +import net.minecraft.item.ItemEnderEye; | |
29 | +import net.minecraft.item.ItemEnderPearl; | |
30 | +import net.minecraft.item.ItemExpBottle; | |
31 | +import net.minecraft.item.ItemFireball; | |
32 | +import net.minecraft.item.ItemFirework; | |
33 | +import net.minecraft.item.ItemFireworkCharge; | |
34 | +import net.minecraft.item.ItemFishingRod; | |
35 | +import net.minecraft.item.ItemFlintAndSteel; | |
36 | +import net.minecraft.item.ItemFood; | |
37 | +import net.minecraft.item.ItemGlassBottle; | |
38 | +import net.minecraft.item.ItemHangingEntity; | |
39 | +import net.minecraft.item.ItemHoe; | |
40 | +import net.minecraft.item.ItemMap; | |
41 | +import net.minecraft.item.ItemMinecart; | |
42 | +import net.minecraft.item.ItemMonsterPlacer; | |
43 | +import net.minecraft.item.ItemPickaxe; | |
44 | +import net.minecraft.item.ItemPotion; | |
45 | +import net.minecraft.item.ItemRecord; | |
46 | +import net.minecraft.item.ItemRedstone; | |
47 | +import net.minecraft.item.ItemReed; | |
48 | +import net.minecraft.item.ItemSaddle; | |
49 | +import net.minecraft.item.ItemSeedFood; | |
50 | +import net.minecraft.item.ItemSeeds; | |
51 | +import net.minecraft.item.ItemShears; | |
52 | +import net.minecraft.item.ItemSign; | |
53 | +import net.minecraft.item.ItemSimpleFoiled; | |
54 | +import net.minecraft.item.ItemSkull; | |
55 | +import net.minecraft.item.ItemSnowball; | |
56 | +import net.minecraft.item.ItemSoup; | |
57 | +import net.minecraft.item.ItemSpade; | |
58 | +import net.minecraft.item.ItemSword; | |
59 | +import net.minecraft.item.ItemWritableBook; | |
60 | +import net.minecraft.potion.Potion; | |
61 | +import net.minecraft.potion.PotionHelper; | |
62 | + | |
63 | +public class MMVS_Item { | |
64 | +// public static Item shovelIron = Item.shovelIron; | |
65 | +// public static Item pickaxeIron = Item.pickaxeIron; | |
66 | +// public static Item axeIron = Item.axeIron; | |
67 | +// public static Item flintAndSteel = Item.flintAndSteel; | |
68 | +// public static Item appleRed = Item.appleRed; | |
69 | +// public static ItemBow bow = Item.bow; | |
70 | +// public static Item arrow = Item.arrow; | |
71 | +// public static Item coal = Item.coal; | |
72 | +// public static Item diamond = Item.diamond; | |
73 | +// public static Item ingotIron = Item.ingotIron; | |
74 | +// public static Item ingotGold = Item.ingotGold; | |
75 | +// public static Item swordIron = Item.swordIron; | |
76 | +// public static Item swordWood = Item.swordWood; | |
77 | +// public static Item shovelWood = (new ItemSpade(13, EnumToolMaterial.WOOD)).setUnlocalizedName("shovelWood"); | |
78 | +// public static Item pickaxeWood = (new ItemPickaxe(14, EnumToolMaterial.WOOD)).setUnlocalizedName("pickaxeWood"); | |
79 | +// public static Item axeWood = (new ItemAxe(15, EnumToolMaterial.WOOD)).setUnlocalizedName("hatchetWood"); | |
80 | +// public static Item swordStone = (new ItemSword(16, EnumToolMaterial.STONE)).setUnlocalizedName("swordStone"); | |
81 | +// public static Item shovelStone = (new ItemSpade(17, EnumToolMaterial.STONE)).setUnlocalizedName("shovelStone"); | |
82 | +// public static Item pickaxeStone = (new ItemPickaxe(18, EnumToolMaterial.STONE)).setUnlocalizedName("pickaxeStone"); | |
83 | +// public static Item axeStone = (new ItemAxe(19, EnumToolMaterial.STONE)).setUnlocalizedName("hatchetStone"); | |
84 | +// public static Item swordDiamond = (new ItemSword(20, EnumToolMaterial.EMERALD)).setUnlocalizedName("swordDiamond"); | |
85 | +// public static Item shovelDiamond = (new ItemSpade(21, EnumToolMaterial.EMERALD)).setUnlocalizedName("shovelDiamond"); | |
86 | +// public static Item pickaxeDiamond = (new ItemPickaxe(22, EnumToolMaterial.EMERALD)).setUnlocalizedName("pickaxeDiamond"); | |
87 | +// public static Item axeDiamond = (new ItemAxe(23, EnumToolMaterial.EMERALD)).setUnlocalizedName("hatchetDiamond"); | |
88 | +// public static Item stick = (new Item(24)).setFull3D().setUnlocalizedName("stick").setCreativeTab(CreativeTabs.tabMaterials); | |
89 | +// public static Item bowlEmpty = (new Item(25)).setUnlocalizedName("bowl").setCreativeTab(CreativeTabs.tabMaterials); | |
90 | +// public static Item bowlSoup = (new ItemSoup(26, 6)).setUnlocalizedName("mushroomStew"); | |
91 | +// public static Item swordGold = (new ItemSword(27, EnumToolMaterial.GOLD)).setUnlocalizedName("swordGold"); | |
92 | +// public static Item shovelGold = (new ItemSpade(28, EnumToolMaterial.GOLD)).setUnlocalizedName("shovelGold"); | |
93 | +// public static Item pickaxeGold = (new ItemPickaxe(29, EnumToolMaterial.GOLD)).setUnlocalizedName("pickaxeGold"); | |
94 | +// public static Item axeGold = (new ItemAxe(30, EnumToolMaterial.GOLD)).setUnlocalizedName("hatchetGold"); | |
95 | +// public static Item silk = (new ItemReed(31, Block.tripWire)).setUnlocalizedName("string").setCreativeTab(CreativeTabs.tabMaterials); | |
96 | +// public static Item feather = (new Item(32)).setUnlocalizedName("feather").setCreativeTab(CreativeTabs.tabMaterials); | |
97 | +// public static Item gunpowder = (new Item(33)).setUnlocalizedName("sulphur").setPotionEffect(PotionHelper.gunpowderEffect).setCreativeTab(CreativeTabs.tabMaterials); | |
98 | +// public static Item hoeWood = (new ItemHoe(34, EnumToolMaterial.WOOD)).setUnlocalizedName("hoeWood"); | |
99 | +// public static Item hoeStone = (new ItemHoe(35, EnumToolMaterial.STONE)).setUnlocalizedName("hoeStone"); | |
100 | +// public static Item hoeIron = (new ItemHoe(36, EnumToolMaterial.IRON)).setUnlocalizedName("hoeIron"); | |
101 | +// public static Item hoeDiamond = (new ItemHoe(37, EnumToolMaterial.EMERALD)).setUnlocalizedName("hoeDiamond"); | |
102 | +// public static Item hoeGold = (new ItemHoe(38, EnumToolMaterial.GOLD)).setUnlocalizedName("hoeGold"); | |
103 | +// public static Item seeds = (new ItemSeeds(39, Block.crops.blockID, Block.tilledField.blockID)).setUnlocalizedName("seeds"); | |
104 | +// public static Item wheat = (new Item(40)).setUnlocalizedName("wheat").setCreativeTab(CreativeTabs.tabMaterials); | |
105 | +// public static Item bread = (new ItemFood(41, 5, 0.6F, false)).setUnlocalizedName("bread"); | |
106 | +// public static ItemArmor helmetLeather = (ItemArmor)(new ItemArmor(42, EnumArmorMaterial.CLOTH, 0, 0)).setUnlocalizedName("helmetCloth"); | |
107 | +// public static ItemArmor plateLeather = (ItemArmor)(new ItemArmor(43, EnumArmorMaterial.CLOTH, 0, 1)).setUnlocalizedName("chestplateCloth"); | |
108 | +// public static ItemArmor legsLeather = (ItemArmor)(new ItemArmor(44, EnumArmorMaterial.CLOTH, 0, 2)).setUnlocalizedName("leggingsCloth"); | |
109 | +// public static ItemArmor bootsLeather = (ItemArmor)(new ItemArmor(45, EnumArmorMaterial.CLOTH, 0, 3)).setUnlocalizedName("bootsCloth"); | |
110 | +// public static ItemArmor helmetChain = (ItemArmor)(new ItemArmor(46, EnumArmorMaterial.CHAIN, 1, 0)).setUnlocalizedName("helmetChain"); | |
111 | +// public static ItemArmor plateChain = (ItemArmor)(new ItemArmor(47, EnumArmorMaterial.CHAIN, 1, 1)).setUnlocalizedName("chestplateChain"); | |
112 | +// public static ItemArmor legsChain = (ItemArmor)(new ItemArmor(48, EnumArmorMaterial.CHAIN, 1, 2)).setUnlocalizedName("leggingsChain"); | |
113 | +// public static ItemArmor bootsChain = (ItemArmor)(new ItemArmor(49, EnumArmorMaterial.CHAIN, 1, 3)).setUnlocalizedName("bootsChain"); | |
114 | +// public static ItemArmor helmetIron = (ItemArmor)(new ItemArmor(50, EnumArmorMaterial.IRON, 2, 0)).setUnlocalizedName("helmetIron"); | |
115 | +// public static ItemArmor plateIron = (ItemArmor)(new ItemArmor(51, EnumArmorMaterial.IRON, 2, 1)).setUnlocalizedName("chestplateIron"); | |
116 | +// public static ItemArmor legsIron = (ItemArmor)(new ItemArmor(52, EnumArmorMaterial.IRON, 2, 2)).setUnlocalizedName("leggingsIron"); | |
117 | +// public static ItemArmor bootsIron = (ItemArmor)(new ItemArmor(53, EnumArmorMaterial.IRON, 2, 3)).setUnlocalizedName("bootsIron"); | |
118 | +// public static ItemArmor helmetDiamond = (ItemArmor)(new ItemArmor(54, EnumArmorMaterial.DIAMOND, 3, 0)).setUnlocalizedName("helmetDiamond"); | |
119 | +// public static ItemArmor plateDiamond = (ItemArmor)(new ItemArmor(55, EnumArmorMaterial.DIAMOND, 3, 1)).setUnlocalizedName("chestplateDiamond"); | |
120 | +// public static ItemArmor legsDiamond = (ItemArmor)(new ItemArmor(56, EnumArmorMaterial.DIAMOND, 3, 2)).setUnlocalizedName("leggingsDiamond"); | |
121 | +// public static ItemArmor bootsDiamond = (ItemArmor)(new ItemArmor(57, EnumArmorMaterial.DIAMOND, 3, 3)).setUnlocalizedName("bootsDiamond"); | |
122 | +// public static ItemArmor helmetGold = (ItemArmor)(new ItemArmor(58, EnumArmorMaterial.GOLD, 4, 0)).setUnlocalizedName("helmetGold"); | |
123 | +// public static ItemArmor plateGold = (ItemArmor)(new ItemArmor(59, EnumArmorMaterial.GOLD, 4, 1)).setUnlocalizedName("chestplateGold"); | |
124 | +// public static ItemArmor legsGold = (ItemArmor)(new ItemArmor(60, EnumArmorMaterial.GOLD, 4, 2)).setUnlocalizedName("leggingsGold"); | |
125 | +// public static ItemArmor bootsGold = (ItemArmor)(new ItemArmor(61, EnumArmorMaterial.GOLD, 4, 3)).setUnlocalizedName("bootsGold"); | |
126 | +// public static Item flint = (new Item(62)).setUnlocalizedName("flint").setCreativeTab(CreativeTabs.tabMaterials); | |
127 | +// public static Item porkRaw = (new ItemFood(63, 3, 0.3F, true)).setUnlocalizedName("porkchopRaw"); | |
128 | +// public static Item porkCooked = (new ItemFood(64, 8, 0.8F, true)).setUnlocalizedName("porkchopCooked"); | |
129 | +// public static Item painting = (new ItemHangingEntity(65, EntityPainting.class)).setUnlocalizedName("painting"); | |
130 | +// public static Item appleGold = (new ItemAppleGold(66, 4, 1.2F, false)).setAlwaysEdible().setPotionEffect(Potion.regeneration.id, 5, 0, 1.0F).setUnlocalizedName("appleGold"); | |
131 | +// public static Item sign = (new ItemSign(67)).setUnlocalizedName("sign"); | |
132 | +// public static Item doorWood = (new ItemDoor(68, Material.wood)).setUnlocalizedName("doorWood"); | |
133 | +// public static Item bucketEmpty = (new ItemBucket(69, 0)).setUnlocalizedName("bucket").setMaxStackSize(16); | |
134 | +// public static Item bucketWater = (new ItemBucket(70, Block.waterMoving.blockID)).setUnlocalizedName("bucketWater").setContainerItem(bucketEmpty); | |
135 | +// public static Item bucketLava = (new ItemBucket(71, Block.lavaMoving.blockID)).setUnlocalizedName("bucketLava").setContainerItem(bucketEmpty); | |
136 | +// public static Item minecartEmpty = (new ItemMinecart(72, 0)).setUnlocalizedName("minecart"); | |
137 | +// public static Item saddle = (new ItemSaddle(73)).setUnlocalizedName("saddle"); | |
138 | +// public static Item doorIron = (new ItemDoor(74, Material.iron)).setUnlocalizedName("doorIron"); | |
139 | +// public static Item redstone = (new ItemRedstone(75)).setUnlocalizedName("redstone").setPotionEffect(PotionHelper.redstoneEffect); | |
140 | +// public static Item snowball = (new ItemSnowball(76)).setUnlocalizedName("snowball"); | |
141 | +// public static Item boat = (new ItemBoat(77)).setUnlocalizedName("boat"); | |
142 | +// public static Item leather = (new Item(78)).setUnlocalizedName("leather").setCreativeTab(CreativeTabs.tabMaterials); | |
143 | +// public static Item bucketMilk = (new ItemBucketMilk(79)).setUnlocalizedName("milk").setContainerItem(bucketEmpty); | |
144 | +// public static Item brick = (new Item(80)).setUnlocalizedName("brick").setCreativeTab(CreativeTabs.tabMaterials); | |
145 | +// public static Item clay = (new Item(81)).setUnlocalizedName("clay").setCreativeTab(CreativeTabs.tabMaterials); | |
146 | +// public static Item reed = (new ItemReed(82, Block.reed)).setUnlocalizedName("reeds").setCreativeTab(CreativeTabs.tabMaterials); | |
147 | +// public static Item paper = (new Item(83)).setUnlocalizedName("paper").setCreativeTab(CreativeTabs.tabMisc); | |
148 | +// public static Item book = (new ItemBook(84)).setUnlocalizedName("book").setCreativeTab(CreativeTabs.tabMisc); | |
149 | +// public static Item slimeBall = (new Item(85)).setUnlocalizedName("slimeball").setCreativeTab(CreativeTabs.tabMisc); | |
150 | +// public static Item minecartCrate = (new ItemMinecart(86, 1)).setUnlocalizedName("minecartChest"); | |
151 | +// public static Item minecartPowered = (new ItemMinecart(87, 2)).setUnlocalizedName("minecartFurnace"); | |
152 | +// public static Item egg = (new ItemEgg(88)).setUnlocalizedName("egg"); | |
153 | +// public static Item compass = (new Item(89)).setUnlocalizedName("compass").setCreativeTab(CreativeTabs.tabTools); | |
154 | +// public static ItemFishingRod fishingRod = (ItemFishingRod)(new ItemFishingRod(90)).setUnlocalizedName("fishingRod"); | |
155 | +// public static Item pocketSundial = (new Item(91)).setUnlocalizedName("clock").setCreativeTab(CreativeTabs.tabTools); | |
156 | +// public static Item lightStoneDust = (new Item(92)).setUnlocalizedName("yellowDust").setPotionEffect(PotionHelper.glowstoneEffect).setCreativeTab(CreativeTabs.tabMaterials); | |
157 | +// public static Item fishRaw = (new ItemFood(93, 2, 0.3F, false)).setUnlocalizedName("fishRaw"); | |
158 | +// public static Item fishCooked = (new ItemFood(94, 5, 0.6F, false)).setUnlocalizedName("fishCooked"); | |
159 | +// public static Item dyePowder = (new ItemDye(95)).setUnlocalizedName("dyePowder"); | |
160 | +// public static Item bone = (new Item(96)).setUnlocalizedName("bone").setFull3D().setCreativeTab(CreativeTabs.tabMisc); | |
161 | +// public static Item sugar = (new Item(97)).setUnlocalizedName("sugar").setPotionEffect(PotionHelper.sugarEffect).setCreativeTab(CreativeTabs.tabMaterials); | |
162 | +// public static Item cake = (new ItemReed(98, Block.cake)).setMaxStackSize(1).setUnlocalizedName("cake").setCreativeTab(CreativeTabs.tabFood); | |
163 | +// public static Item bed = (new ItemBed(99)).setMaxStackSize(1).setUnlocalizedName("bed"); | |
164 | +// public static Item redstoneRepeater = (new ItemReed(100, Block.redstoneRepeaterIdle)).setUnlocalizedName("diode").setCreativeTab(CreativeTabs.tabRedstone); | |
165 | +// public static Item cookie = (new ItemFood(101, 2, 0.1F, false)).setUnlocalizedName("cookie"); | |
166 | +// public static ItemMap map = Item.map; | |
167 | +// | |
168 | +// /** | |
169 | +// * Item introduced on 1.7 version, is a shear to cut leaves (you can keep the block) or get wool from sheeps. | |
170 | +// */ | |
171 | +// public static ItemShears shears = (ItemShears)(new ItemShears(103)).setUnlocalizedName("shears"); | |
172 | +// public static Item melon = (new ItemFood(104, 2, 0.3F, false)).setUnlocalizedName("melon"); | |
173 | +// public static Item pumpkinSeeds = (new ItemSeeds(105, Block.pumpkinStem.blockID, Block.tilledField.blockID)).setUnlocalizedName("seeds_pumpkin"); | |
174 | +// public static Item melonSeeds = (new ItemSeeds(106, Block.melonStem.blockID, Block.tilledField.blockID)).setUnlocalizedName("seeds_melon"); | |
175 | +// public static Item beefRaw = (new ItemFood(107, 3, 0.3F, true)).setUnlocalizedName("beefRaw"); | |
176 | +// public static Item beefCooked = (new ItemFood(108, 8, 0.8F, true)).setUnlocalizedName("beefCooked"); | |
177 | +// public static Item chickenRaw = (new ItemFood(109, 2, 0.3F, true)).setPotionEffect(Potion.hunger.id, 30, 0, 0.3F).setUnlocalizedName("chickenRaw"); | |
178 | +// public static Item chickenCooked = (new ItemFood(110, 6, 0.6F, true)).setUnlocalizedName("chickenCooked"); | |
179 | +// public static Item rottenFlesh = (new ItemFood(111, 4, 0.1F, true)).setPotionEffect(Potion.hunger.id, 30, 0, 0.8F).setUnlocalizedName("rottenFlesh"); | |
180 | +// public static Item enderPearl = (new ItemEnderPearl(112)).setUnlocalizedName("enderPearl"); | |
181 | +// public static Item blazeRod = (new Item(113)).setUnlocalizedName("blazeRod").setCreativeTab(CreativeTabs.tabMaterials); | |
182 | +// public static Item ghastTear = (new Item(114)).setUnlocalizedName("ghastTear").setPotionEffect(PotionHelper.ghastTearEffect).setCreativeTab(CreativeTabs.tabBrewing); | |
183 | +// public static Item goldNugget = (new Item(115)).setUnlocalizedName("goldNugget").setCreativeTab(CreativeTabs.tabMaterials); | |
184 | +// public static Item netherStalkSeeds = (new ItemSeeds(116, Block.netherStalk.blockID, Block.slowSand.blockID)).setUnlocalizedName("netherStalkSeeds").setPotionEffect("+4"); | |
185 | +// public static ItemPotion potion = (ItemPotion)(new ItemPotion(117)).setUnlocalizedName("potion"); | |
186 | +// public static Item glassBottle = (new ItemGlassBottle(118)).setUnlocalizedName("glassBottle"); | |
187 | +// public static Item spiderEye = (new ItemFood(119, 2, 0.8F, false)).setPotionEffect(Potion.poison.id, 5, 0, 1.0F).setUnlocalizedName("spiderEye").setPotionEffect(PotionHelper.spiderEyeEffect); | |
188 | +// public static Item fermentedSpiderEye = (new Item(120)).setUnlocalizedName("fermentedSpiderEye").setPotionEffect(PotionHelper.fermentedSpiderEyeEffect).setCreativeTab(CreativeTabs.tabBrewing); | |
189 | +// public static Item blazePowder = (new Item(121)).setUnlocalizedName("blazePowder").setPotionEffect(PotionHelper.blazePowderEffect).setCreativeTab(CreativeTabs.tabBrewing); | |
190 | +// public static Item magmaCream = (new Item(122)).setUnlocalizedName("magmaCream").setPotionEffect(PotionHelper.magmaCreamEffect).setCreativeTab(CreativeTabs.tabBrewing); | |
191 | +// public static Item brewingStand = (new ItemReed(123, Block.brewingStand)).setUnlocalizedName("brewingStand").setCreativeTab(CreativeTabs.tabBrewing); | |
192 | +// public static Item cauldron = (new ItemReed(124, Block.cauldron)).setUnlocalizedName("cauldron").setCreativeTab(CreativeTabs.tabBrewing); | |
193 | +// public static Item eyeOfEnder = (new ItemEnderEye(125)).setUnlocalizedName("eyeOfEnder"); | |
194 | +// public static Item speckledMelon = (new Item(126)).setUnlocalizedName("speckledMelon").setPotionEffect(PotionHelper.speckledMelonEffect).setCreativeTab(CreativeTabs.tabBrewing); | |
195 | +// public static Item monsterPlacer = (new ItemMonsterPlacer(127)).setUnlocalizedName("monsterPlacer"); | |
196 | +// | |
197 | +// /** | |
198 | +// * Bottle o' Enchanting. Drops between 1 and 3 experience orbs when thrown. | |
199 | +// */ | |
200 | +// public static Item expBottle = (new ItemExpBottle(128)).setUnlocalizedName("expBottle"); | |
201 | +// | |
202 | +// /** | |
203 | +// * Fire Charge. When used in a dispenser it fires a fireball similiar to a Ghast's. | |
204 | +// */ | |
205 | +// public static Item fireballCharge = (new ItemFireball(129)).setUnlocalizedName("fireball"); | |
206 | +// public static Item writableBook = (new ItemWritableBook(130)).setUnlocalizedName("writingBook").setCreativeTab(CreativeTabs.tabMisc); | |
207 | +// public static Item writtenBook = (new ItemEditableBook(131)).setUnlocalizedName("writtenBook"); | |
208 | +// public static Item emerald = (new Item(132)).setUnlocalizedName("emerald").setCreativeTab(CreativeTabs.tabMaterials); | |
209 | +// public static Item itemFrame = (new ItemHangingEntity(133, EntityItemFrame.class)).setUnlocalizedName("frame"); | |
210 | +// public static Item flowerPot = (new ItemReed(134, Block.flowerPot)).setUnlocalizedName("flowerPot").setCreativeTab(CreativeTabs.tabDecorations); | |
211 | +// public static Item carrot = (new ItemSeedFood(135, 4, 0.6F, Block.carrot.blockID, Block.tilledField.blockID)).setUnlocalizedName("carrots"); | |
212 | +// public static Item potato = (new ItemSeedFood(136, 1, 0.3F, Block.potato.blockID, Block.tilledField.blockID)).setUnlocalizedName("potato"); | |
213 | +// public static Item bakedPotato = (new ItemFood(137, 6, 0.6F, false)).setUnlocalizedName("potatoBaked"); | |
214 | +// public static Item poisonousPotato = (new ItemFood(138, 2, 0.3F, false)).setPotionEffect(Potion.poison.id, 5, 0, 0.6F).setUnlocalizedName("potatoPoisonous"); | |
215 | +// public static ItemEmptyMap emptyMap = Item.emptyMap; | |
216 | +// public static Item goldenCarrot = (new ItemFood(140, 6, 1.2F, false)).setUnlocalizedName("carrotGolden").setPotionEffect(PotionHelper.goldenCarrotEffect); | |
217 | +// public static Item skull = (new ItemSkull(141)).setUnlocalizedName("skull"); | |
218 | +// public static Item carrotOnAStick = (new ItemCarrotOnAStick(142)).setUnlocalizedName("carrotOnAStick"); | |
219 | +// public static Item netherStar = (new ItemSimpleFoiled(143)).setUnlocalizedName("netherStar").setCreativeTab(CreativeTabs.tabMaterials); | |
220 | +// public static Item pumpkinPie = (new ItemFood(144, 8, 0.3F, false)).setUnlocalizedName("pumpkinPie").setCreativeTab(CreativeTabs.tabFood); | |
221 | +// public static Item firework = (new ItemFirework(145)).setUnlocalizedName("fireworks"); | |
222 | +// public static Item fireworkCharge = (new ItemFireworkCharge(146)).setUnlocalizedName("fireworksCharge").setCreativeTab(CreativeTabs.tabMisc); | |
223 | +// public static ItemEnchantedBook enchantedBook = (ItemEnchantedBook)(new ItemEnchantedBook(147)).setMaxStackSize(1).setUnlocalizedName("enchantedBook"); | |
224 | +// public static Item comparator = (new ItemReed(148, Block.redstoneComparatorIdle)).setUnlocalizedName("comparator").setCreativeTab(CreativeTabs.tabRedstone); | |
225 | +// public static Item netherrackBrick = (new Item(149)).setUnlocalizedName("netherbrick").setCreativeTab(CreativeTabs.tabMaterials); | |
226 | +// public static Item netherQuartz = (new Item(150)).setUnlocalizedName("netherquartz").setCreativeTab(CreativeTabs.tabMaterials); | |
227 | +// public static Item minecartTnt = (new ItemMinecart(151, 3)).setUnlocalizedName("minecartTnt"); | |
228 | +// public static Item minecartHopper = (new ItemMinecart(152, 5)).setUnlocalizedName("minecartHopper"); | |
229 | +// public static Item record13 = Item.record13; | |
230 | +// public static Item recordCat = Item.recordCat; | |
231 | +// public static Item recordBlocks = Item.recordBlocks; | |
232 | +// public static Item recordChirp = Item.recordChirp; | |
233 | +// public static Item recordFar = Item.recordFar; | |
234 | +// public static Item recordMall = Item.recordMall; | |
235 | +// public static Item recordMellohi = Item.recordMellohi; | |
236 | +// public static Item recordStal = Item.recordStal; | |
237 | +// public static Item recordStrad = Item.recordStrad; | |
238 | +// public static Item recordWard = Item.recordWard; | |
239 | +// public static Item record11 = Item.record11; | |
240 | +// public static Item recordWait = Item.recordWait; | |
241 | +} |
@@ -0,0 +1,7 @@ | ||
1 | +package asia.tcrs.tcrscore.mmvs; | |
2 | + | |
3 | +import net.minecraft.item.ItemStack; | |
4 | + | |
5 | +public class MMVS { | |
6 | + public static ItemStack itemstack; | |
7 | +} |
@@ -0,0 +1,83 @@ | ||
1 | +package asia.tcrs.tcrscore.mmvs; | |
2 | + | |
3 | +import asia.tcrs.tcrscore.TcrsCore; | |
4 | +import net.minecraft.block.Block; | |
5 | +import net.minecraft.item.Item; | |
6 | +import net.minecraft.item.ItemStack; | |
7 | +import net.minecraft.item.crafting.CraftingManager; | |
8 | +import net.minecraft.item.crafting.FurnaceRecipes; | |
9 | +import cpw.mods.fml.common.registry.GameRegistry; | |
10 | + | |
11 | +public class MMVS_GameRegistry { | |
12 | + | |
13 | + /** | |
14 | + * FMLやModLoaderのaddRecipeと使い方は同じ | |
15 | + * @param output 作成アイテム | |
16 | + * @param params 材料のアイテム | |
17 | + */ | |
18 | + public static void addRecipe(ItemStack output, Object... params) { | |
19 | + CraftingManager.getInstance().addRecipe(output, params); | |
20 | + } | |
21 | + | |
22 | + /** | |
23 | + * FMLやModLoaderのaddShapelessRecipeと使い方は同じ | |
24 | + * @param output 作成アイテム | |
25 | + * @param params 材料のアイテム | |
26 | + */ | |
27 | + public static void addShapelessRecipe(ItemStack output, Object... params) { | |
28 | + CraftingManager.getInstance().addShapelessRecipe(output, params); | |
29 | + } | |
30 | + | |
31 | + /** | |
32 | + * 定形レシピ追加時に作成アイテムのレシピをすべて削除し、追加をします。 | |
33 | + * @param output 作成アイテム | |
34 | + * @param params 材料のアイテム | |
35 | + */ | |
36 | + public static void replaceRecipe(ItemStack output, Object... params) { | |
37 | + TcrsCore.DeleteCraftingRecipe(output); | |
38 | + addRecipe(output, params); | |
39 | + } | |
40 | + | |
41 | + /** | |
42 | + * 不定形レシピ追加時に作成アイテムのレシピをすべて削除し、追加をします。 | |
43 | + * @param output 作成アイテム | |
44 | + * @param params 材料のアイテム | |
45 | + */ | |
46 | + public static void replaceShapelessRecipe(ItemStack output, Object... params) { | |
47 | + TcrsCore.DeleteCraftingRecipe(output); | |
48 | + addShapelessRecipe(output, params); | |
49 | + } | |
50 | + | |
51 | + /** | |
52 | + * 精錬レシピの追加 | |
53 | + * @param input 精錬する物のID | |
54 | + * @param output 精錬後のアイテムのItemStack | |
55 | + * @param xp 経験値の量 | |
56 | + */ | |
57 | + public static void addSmelting(int input, ItemStack output, float xp) { | |
58 | + FurnaceRecipes.smelting().addSmelting(input, output, xp); | |
59 | + } | |
60 | + | |
61 | + /** | |
62 | + * 精錬レシピを置き換える | |
63 | + * @param input 精錬する物のItem | |
64 | + * @param output 精錬後のアイテムのItemStack | |
65 | + * @param xp 経験値の量 | |
66 | + */ | |
67 | + public static void replaceSmelting(Item input, ItemStack output, float xp) { | |
68 | + TcrsCore.DeleteSmeltingRecipe(output); | |
69 | + FurnaceRecipes.smelting().addSmelting(input.itemID, output, xp); | |
70 | + } | |
71 | + | |
72 | + /** | |
73 | + * 精錬レシピを置き換える | |
74 | + * @param input 精錬する物のBlock | |
75 | + * @param output 精錬後のアイテムのItemStack | |
76 | + * @param xp 経験値の量 | |
77 | + */ | |
78 | + public static void replaceSmelting(Block input, ItemStack output, float xp) { | |
79 | + TcrsCore.DeleteSmeltingRecipe(output); | |
80 | + FurnaceRecipes.smelting().addSmelting(input.blockID, output, xp); | |
81 | + } | |
82 | + | |
83 | +} |
@@ -0,0 +1,39 @@ | ||
1 | +package asia.tcrs.tcrscore.mod; | |
2 | + | |
3 | +import cpw.mods.fml.common.Mod.Init; | |
4 | +import cpw.mods.fml.common.Mod.PreInit; | |
5 | +import cpw.mods.fml.common.event.FMLInitializationEvent; | |
6 | +import cpw.mods.fml.common.event.FMLPreInitializationEvent; | |
7 | + | |
8 | + | |
9 | +public interface IMOD { | |
10 | + | |
11 | + /** | |
12 | + * config設定などをここでする。 | |
13 | + * ブロック・アイテムの追加処理もする。 | |
14 | + * | |
15 | + * registerItemに追加した方がすっきりするかも | |
16 | + * | |
17 | + * registerItemを使う場合 | |
18 | + * コード内にregisterItem();を記載する必要がある。 | |
19 | + * | |
20 | + * @param event | |
21 | + */ | |
22 | + @PreInit | |
23 | + public void preload(FMLPreInitializationEvent Event); | |
24 | + | |
25 | + /** | |
26 | + * ここで、ブロック・アイテムの追加処理をする。 | |
27 | + */ | |
28 | + public void registerItem(); | |
29 | + | |
30 | + /** | |
31 | + * | |
32 | + * 言語登録・レシピ追加等をここでする。 | |
33 | + * | |
34 | + * @param event | |
35 | + */ | |
36 | + @Init | |
37 | + public void load(FMLInitializationEvent event); | |
38 | + | |
39 | +} |
@@ -0,0 +1,16 @@ | ||
1 | +package asia.tcrs.tcrscore.mod.block; | |
2 | + | |
3 | +import net.minecraft.block.Block; | |
4 | +import net.minecraft.block.material.Material; | |
5 | +import cpw.mods.fml.relauncher.Side; | |
6 | +import cpw.mods.fml.relauncher.SideOnly; | |
7 | + | |
8 | +public class BaseBlock extends Block { | |
9 | + | |
10 | + public String unlocalizedName; | |
11 | + | |
12 | + public BaseBlock(int par1, Material par2Material, int par3) { | |
13 | + super(par1, par3, par2Material); | |
14 | + } | |
15 | + | |
16 | +} |
@@ -0,0 +1,24 @@ | ||
1 | +package asia.tcrs.tcrscore.mod.item; | |
2 | + | |
3 | +import cpw.mods.fml.relauncher.Side; | |
4 | +import cpw.mods.fml.relauncher.SideOnly; | |
5 | +import net.minecraft.item.Item; | |
6 | + | |
7 | +public class BaseItem extends Item { | |
8 | + | |
9 | + public static int itemID; | |
10 | + private String TextureName=null; | |
11 | + private String unlocalizedName; | |
12 | + | |
13 | + public BaseItem(int par1) { | |
14 | + super(par1); | |
15 | + itemID = 256 + par1; | |
16 | + } | |
17 | + | |
18 | + public BaseItem(int par1, String par2) { | |
19 | + super(par1); | |
20 | + itemID = 256 + par1; | |
21 | + TextureName=par2; | |
22 | + } | |
23 | + | |
24 | +} |
@@ -0,0 +1,11 @@ | ||
1 | +package asia.tcrs.tcrscore.mod.item; | |
2 | + | |
3 | +import net.minecraft.item.ItemFood; | |
4 | + | |
5 | +public class BaseItemFood extends ItemFood{ | |
6 | + | |
7 | + public BaseItemFood(int par1, int par2, boolean par3) { | |
8 | + super(par1, par2, par3); | |
9 | + } | |
10 | + | |
11 | +} |
@@ -0,0 +1,12 @@ | ||
1 | +package asia.tcrs.tcrscore.mod.item; | |
2 | + | |
3 | +import net.minecraft.item.EnumToolMaterial; | |
4 | +import net.minecraft.item.ItemPickaxe; | |
5 | + | |
6 | +public class BaseItemPickaxe extends ItemPickaxe { | |
7 | + | |
8 | + public BaseItemPickaxe(int par1, EnumToolMaterial par2EnumToolMaterial) { | |
9 | + super(par1, par2EnumToolMaterial); | |
10 | + } | |
11 | + | |
12 | +} |