<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Error Gui]]]></title><description><![CDATA[<p dir="auto"><span style="color:#333333">Bonjour</span><br />
%(#333333)[J’ai créer une Graphical User Interface (GUI) mais elle ne veut pas s’ouvrir, <img src="https://www.minecraftforgefrance.fr/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=191f1bb5acb" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /> ]<br />
pourtant j’ai suivi le tuto du forum.<br />
Que puis-je faire pour remédier a ce problème? :huh:</p>
<p dir="auto"><em><span style="color:#ff3333">Mon code :</span></em></p>
<p dir="auto"><em><span style="color:#3366ff">Class principale :</span></em></p>
<pre><code class="java">%(#333333)[​package com.google.SpyMan.Mechanicalcraft.common;
]

<span style="color:#333333">import net.minecraft.block.Block;</span>
<span style="color:#333333">import net.minecraft.block.material.Material;</span>
<span style="color:#333333">import net.minecraft.creativetab.CreativeTabs;</span>
<span style="color:#333333">import net.minecraft.init.Blocks;</span>
<span style="color:#333333">import net.minecraft.init.Items;</span>
<span style="color:#333333">import net.minecraft.item.Item;</span>
<span style="color:#333333">import net.minecraft.item.Item.ToolMaterial;</span>
<span style="color:#333333">import net.minecraft.item.ItemStack;</span>
<span style="color:#333333">import net.minecraftforge.common.MinecraftForge;</span>
<span style="color:#333333">import net.minecraftforge.common.util.EnumHelper;</span>
<span style="color:#333333">import net.minecraftforge.oredict.OreDictionary;</span>

<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer.Alloyer;</span>
<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer.TileEntityAlloyer;</span>
<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.common.BlockCrusher.Crusher;</span>
<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.common.BlockCrusher.TileCrusher;</span>
<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.common.BlockFurnace.Furnace;</span>
<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.common.BlockFurnace.TileFurnace;</span>
<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.common.BronzeTools.BronzeAxe;</span>
<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.common.BronzeTools.BronzeHoe;</span>
<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.common.BronzeTools.BronzePickaxe;</span>
<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.common.BronzeTools.BronzeShovel;</span>
<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.common.BronzeTools.BronzeSword;</span>
<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.common.Event.BlockEventDeleter;</span>
<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.common.Event.BlockEventHandler;</span>
<span style="color:#333333">import com.google.SpyMan.Mechanicalcraft.proxy.CommonProxy;</span>

<span style="color:#333333">import cpw.mods.fml.common.Mod;</span>
<span style="color:#333333">import cpw.mods.fml.common.Mod.EventHandler;</span>
<span style="color:#333333">import cpw.mods.fml.common.Mod.Instance;</span>
<span style="color:#333333">import cpw.mods.fml.common.SidedProxy;</span>
<span style="color:#333333">import cpw.mods.fml.common.event.FMLInitializationEvent;</span>
<span style="color:#333333">import cpw.mods.fml.common.event.FMLPostInitializationEvent;</span>
<span style="color:#333333">import cpw.mods.fml.common.event.FMLPreInitializationEvent;</span>
<span style="color:#333333">import cpw.mods.fml.common.registry.GameRegistry;</span>

<span style="color:#333333">@Mod(modid = "modmechanicalcraft", name = "MechanicalCraft_beta", version = "1.0.0")</span>
<span style="color:#333333">public class mod_mechanicalcraft {</span>

<span style="color:#333333"> @Instance("modmechanicalcraft")</span>
<span style="color:#333333"> public static mod_mechanicalcraft instance;</span>

<span style="color:#333333"> @SidedProxy(clientSide = "com.google.SpyMan.Mechanicalcraft.proxy.ClientProxy", serverSide = "com.google.SpyMan.Mechanicalcraft.proxy.CommonProxy")</span>
<span style="color:#333333"> public static CommonProxy proxy;</span>

<span style="color:#333333"> // Item –---------------------------------------------</span>

<span style="color:#333333"> public static Item Wrench, Hammer, Pliers, ToolBox;</span>
<span style="color:#333333"> public static Item SteelPickaxe, SteelAxe, SteelShovel, SteelSword,</span>
<span style="color:#333333"> SteelHoe, RedstoneDrill;</span>
<span style="color:#333333"> public static Item BronzePickaxe, BronzeAxe, BronzeShovel, BronzeHoe,</span>
<span style="color:#333333"> BronzeSword;</span>
<span style="color:#333333"> public static Item steelIngot, copperIngot, tinIngot, BronzeIngot;</span>
<span style="color:#333333"> public static Item ironPlate, steelPlate, copperPlate, tinPlate, goldPlate;</span>
<span style="color:#333333"> public static Item ironGear, steelGear, copperGear, tinGear;</span>
<span style="color:#333333"> public static Item redstoneCrystal;</span>
<span style="color:#333333"> public static Item steelDust, coalDust, ironDust, copperDust, tinDust,</span>
<span style="color:#333333"> BronzeDust, goldDust;</span>
<span style="color:#333333"> public static Item Engine, ElectricalEngine;</span>
<span style="color:#333333"> public static Item crusherBlade;</span>
<span style="color:#333333"> public static Item tinCable, copperCable;</span>
<span style="color:#333333"> public static Item electronicChipset, ElectronicGoldChipset, Coil,</span>
<span style="color:#333333"> ElectricMotor;</span>
<span style="color:#333333"> public static Item BrokenTinOre, BrokenCopperOre, BrokenIronOre,</span>
<span style="color:#333333"> BrokenCoalOre, BrokenGoldOre, BrokenRedstoneOre, BrokenDiamondOre,</span>
<span style="color:#333333"> BrokenEmeraldOre, BrokenLapisOre;</span>

<span style="color:#333333"> // Other –-----------------------------------------------</span>

<span style="color:#333333"> public static CreativeTabs creatab = new Ctab("Ctab");</span>

<span style="color:#333333"> // Blocks –--------------------------------------------</span>

<span style="color:#333333"> public static Block Crusher, Furnace, Alloyer;</span>

<span style="color:#333333"> public static Block MachineBlock;</span>

<span style="color:#333333"> public static Block TinOre, CopperOre;</span>

<span style="color:#333333"> // Tools/Armor</span>
<span style="color:#333333"> // –-------------------------------------------------------------</span>

<span style="color:#333333"> public static ToolMaterial SteelTools = EnumHelper.addToolMaterial(</span>
<span style="color:#333333"> "SteelTools", 2, 649, 10.0F, 3.0F, 20);</span>

<span style="color:#333333"> public static ToolMaterial BronzeTools = EnumHelper.addToolMaterial(</span>
<span style="color:#333333"> "BronzeTools", 2, 315, 9.0F, 2.0F, 18);</span>

<span style="color:#333333"> public static ToolMaterial RedTools = EnumHelper.addToolMaterial("pickaxe",</span>
<span style="color:#333333"> 5, 4999, 14.0F, 6.0F, 0);</span>

<span style="color:#333333"> @EventHandler</span>
<span style="color:#333333"> public void preInit(FMLPreInitializationEvent event) {</span>
<span style="color:#333333"> // Event</span>
<span style="color:#333333"> // –-------------------------------------------------------------------</span>

<span style="color:#333333"> MinecraftForge.EVENT_BUS.register(new BlockEventDeleter());</span>

<span style="color:#333333"> // Item –-------------------------------------------</span>

<span style="color:#333333"> Wrench = new Wrench().setUnlocalizedName("Wrench").setMaxStackSize(1)</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:Wrench");</span>
<span style="color:#333333"> Hammer = new Hammer().setUnlocalizedName("Hammer").setMaxStackSize(1)</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:Hammer");</span>
<span style="color:#333333"> steelIngot = new steelIngot().setUnlocalizedName("steelIngot")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:steelingot");</span>
<span style="color:#333333"> coalDust = new coalDust().setUnlocalizedName("coalDust")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:coaldust");</span>
<span style="color:#333333"> ironPlate = new ironPlate().setUnlocalizedName("ironPlate")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:ironplate");</span>
<span style="color:#333333"> steelPlate = new steelPlate().setUnlocalizedName("steelPlate")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:steelplate");</span>
<span style="color:#333333"> ironGear = new ironGear().setUnlocalizedName("ironGear")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:irongear");</span>
<span style="color:#333333"> redstoneCrystal = new redstoneCrystal()</span>
<span style="color:#333333"> .setUnlocalizedName("redstoneCrystal").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:redstonecrystal");</span>
<span style="color:#333333"> steelGear = new steelGear().setUnlocalizedName("steelGear")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:steelGear");</span>
<span style="color:#333333"> ironDust = new ironDust().setUnlocalizedName("ironDust")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:ironDust");</span>
<span style="color:#333333"> steelDust = new steelDust().setUnlocalizedName("steelDust")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:steelDust");</span>
<span style="color:#333333"> Pliers = new Pliers().setUnlocalizedName("Pliers").setMaxStackSize(1)</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:pliers");</span>
<span style="color:#333333"> Engine = new Engine().setUnlocalizedName("Engine")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:engine");</span>
<span style="color:#333333"> copperGear = new CopperGear().setUnlocalizedName("copperGear")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:copperGear");</span>
<span style="color:#333333"> copperIngot = new CopperIngot().setUnlocalizedName("copperIngot")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:copperIngot");</span>
<span style="color:#333333"> copperDust = new CopperDust().setUnlocalizedName("copperDust")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:copperDust");</span>
<span style="color:#333333"> copperPlate = new copperPlate().setUnlocalizedName("copperPlate")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:copperPlate");</span>
<span style="color:#333333"> crusherBlade = new crusherBlade().setUnlocalizedName("crusherBlade")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:crusherBlade");</span>
<span style="color:#333333"> SteelPickaxe = new SteelPickaxe(SteelTools)</span>
<span style="color:#333333"> .setUnlocalizedName("SteelPickaxe").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:steelpickaxe");</span>
<span style="color:#333333"> SteelAxe = new SteelAxe(SteelTools).setUnlocalizedName("SteelAxe")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:steelaxe");</span>
<span style="color:#333333"> SteelShovel = new SteelShovel(SteelTools)</span>
<span style="color:#333333"> .setUnlocalizedName("SteelShovel").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:steelshovel");</span>
<span style="color:#333333"> SteelSword = new SteelSword(SteelTools)</span>
<span style="color:#333333"> .setUnlocalizedName("SteelSword").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:steelsword");</span>
<span style="color:#333333"> SteelHoe = new SteelHoe(SteelTools).setUnlocalizedName("SteelHoe")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:steelhoe");</span>
<span style="color:#333333"> tinDust = new tinDust().setUnlocalizedName("tinDust")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:tinDust");</span>
<span style="color:#333333"> tinIngot = new tinIngot().setUnlocalizedName("tinIngot")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:tiningot");</span>
<span style="color:#333333"> tinPlate = new tinPlate().setUnlocalizedName("tinPlate")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:tinplate");</span>
<span style="color:#333333"> tinGear = new tinGear().setUnlocalizedName("tinGear")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:tinGear");</span>
<span style="color:#333333"> tinCable = new tinCable().setUnlocalizedName("tinCable")</span>
<span style="color:#333333"> .setCreativeTab(creatab).setTextureName(MODID + ":tinCable");</span>
<span style="color:#333333"> copperCable = new copperCable().setUnlocalizedName("copperCable")</span>
<span style="color:#333333"> .setCreativeTab(creatab).setTextureName(MODID + ":copperCable");</span>
<span style="color:#333333"> goldDust = new goldDust().setUnlocalizedName("goldDust")</span>
<span style="color:#333333"> .setCreativeTab(creatab).setTextureName(MODID + ":goldDust");</span>
<span style="color:#333333"> goldPlate = new goldPlate().setUnlocalizedName("goldPlate")</span>
<span style="color:#333333"> .setCreativeTab(creatab).setTextureName(MODID + ":goldPlate");</span>
<span style="color:#333333"> electronicChipset = new electronicChipset()</span>
<span style="color:#333333"> .setUnlocalizedName("electronicChipset")</span>
<span style="color:#333333"> .setCreativeTab(creatab).setTextureName(MODID + ":chipset");</span>
<span style="color:#333333"> RedstoneDrill = new RedstoneDrill(RedTools)</span>
<span style="color:#333333"> .setUnlocalizedName("RedstoneDrill").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:redstoneDrill");</span>
<span style="color:#333333"> ElectricalEngine = new ElectricalEngine()</span>
<span style="color:#333333"> .setUnlocalizedName("ElectricalEngine").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:electricalEngine");</span>
<span style="color:#333333"> ElectricMotor = new ElectricMotor().setUnlocalizedName("ElectricMotor")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:electricMotor");</span>
<span style="color:#333333"> Coil = new Coil().setUnlocalizedName("Coil").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName("modmechanicalcraft:coil");</span>
<span style="color:#333333"> ToolBox = new ToolBox().setUnlocalizedName("ToolBox")</span>
<span style="color:#333333"> .setCreativeTab(creatab).setTextureName(MODID + (":toolBox"));</span>
<span style="color:#333333"> ElectronicGoldChipset = new ElectronicGoldChipset()</span>
<span style="color:#333333"> .setUnlocalizedName("ElectronicGoldChipset")</span>
<span style="color:#333333"> .setCreativeTab(creatab).setTextureName(MODID + ":goldChipset");</span>
<span style="color:#333333"> BrokenCopperOre = new BrokenCopperOre()</span>
<span style="color:#333333"> .setUnlocalizedName("BrokenCopperOre").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName(MODID + ":BrokenCopperOre");</span>
<span style="color:#333333"> BrokenTinOre = new BrokenTinOre().setUnlocalizedName("BrokenTinOre")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName(MODID + ":BrokenTinOre");</span>
<span style="color:#333333"> BrokenIronOre = new BrokenIronOre().setUnlocalizedName("BrokenIronOre")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName(MODID + ":BrokenIronOre");</span>
<span style="color:#333333"> BrokenCoalOre = new BrokenCoalOre().setUnlocalizedName("BrokenCoalOre")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName(MODID + ":BrokenCoalOre");</span>
<span style="color:#333333"> BrokenGoldOre = new BrokenGoldOre().setUnlocalizedName("BrokenGoldOre")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName(MODID + ":BrokenGoldOre");</span>
<span style="color:#333333"> BrokenRedstoneOre = new BrokenRedstoneOre()</span>
<span style="color:#333333"> .setUnlocalizedName("BrokenRedstoneOre")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName(MODID + ":BrokenRedstoneOre");</span>
<span style="color:#333333"> BrokenDiamondOre = new BrokenDiamondOre()</span>
<span style="color:#333333"> .setUnlocalizedName("BrokenDiamondOre").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName(MODID + ":BrokenDiamondOre");</span>
<span style="color:#333333"> BrokenEmeraldOre = new BrokenEmeraldOre()</span>
<span style="color:#333333"> .setUnlocalizedName("BrokenEmeraldOre").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName(MODID + ":BrokenEmeraldOre");</span>
<span style="color:#333333"> BrokenLapisOre = new BrokenLapisOre()</span>
<span style="color:#333333"> .setUnlocalizedName("BrokenLapisOre").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName(MODID + ":BrokenLapisOre");</span>
<span style="color:#333333"> BronzeIngot = new BronzeIngot().setUnlocalizedName("BronzeIngot")</span>
<span style="color:#333333"> .setCreativeTab(creatab).setTextureName(MODID + ":BronzeIngot");</span>
<span style="color:#333333"> BronzeDust = new BronzeDust().setUnlocalizedName("BronzeDust")</span>
<span style="color:#333333"> .setCreativeTab(creatab).setTextureName(MODID + ":BronzeDust");</span>

<span style="color:#333333"> BronzePickaxe = new BronzePickaxe(BronzeTools)</span>
<span style="color:#333333"> .setUnlocalizedName("BronzePickaxe").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName(MODID + ":BronzePickaxe");</span>
<span style="color:#333333"> BronzeAxe = new BronzeAxe(BronzeTools).setUnlocalizedName("BronzeAxe")</span>
<span style="color:#333333"> .setCreativeTab(creatab).setTextureName(MODID + ":BronzeAxe");</span>
<span style="color:#333333"> BronzeShovel = new BronzeShovel(BronzeTools)</span>
<span style="color:#333333"> .setUnlocalizedName("BronzeShovel").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName(MODID + ":BronzeShovel");</span>
<span style="color:#333333"> BronzeHoe = new BronzeHoe(BronzeTools).setUnlocalizedName("BronzeHoe")</span>
<span style="color:#333333"> .setCreativeTab(creatab).setTextureName(MODID + ":BronzeHoe");</span>
<span style="color:#333333"> BronzeSword = new BronzeSword(BronzeTools)</span>
<span style="color:#333333"> .setUnlocalizedName("BronzeSword").setCreativeTab(creatab)</span>
<span style="color:#333333"> .setTextureName(MODID + ":BronzeSword");</span>

<span style="color:#333333"> // Blocks –----------------------------------------------</span>

<span style="color:#333333"> Crusher = new Crusher(Material.iron).setBlockName("Crusher")</span>
<span style="color:#333333"> .setCreativeTab(creatab);</span>

<span style="color:#333333"> Furnace = new Furnace(Material.iron).setBlockName("Furnace")</span>
<span style="color:#333333"> .setCreativeTab(creatab);</span>

<span style="color:#333333"> MachineBlock = new MachineBlock(Material.iron).setCreativeTab(creatab)</span>
<span style="color:#333333"> .setBlockName("MachineBlock")</span>
<span style="color:#333333"> .setBlockTextureName("modmechanicalcraft:crusher_left_right");</span>

<span style="color:#333333"> CopperOre = new CopperOre(Material.rock).setBlockName("CopperOre")</span>
<span style="color:#333333"> .setCreativeTab(creatab)</span>
<span style="color:#333333"> .setBlockTextureName(MODID + ":CopperOre");</span>

<span style="color:#333333"> TinOre = new TinOre(Material.rock).setBlockName("TinOre")</span>
<span style="color:#333333"> .setCreativeTab(creatab).setBlockTextureName(MODID + ":TinOre");</span>

<span style="color:#333333"> Alloyer = new Alloyer(Material.iron).setBlockName("Alloyer")</span>
<span style="color:#333333"> .setCreativeTab(creatab);</span>

<span style="color:#333333"> // Other –-----------------------------------------------------</span>

<span style="color:#333333"> // Item –------------------------------------------------</span>

<span style="color:#333333"> GameRegistry.registerItem(Wrench, "Wrench");</span>
<span style="color:#333333"> GameRegistry.registerItem(Hammer, "Hammer");</span>
<span style="color:#333333"> GameRegistry.registerItem(steelIngot, "steelIngot");</span>
<span style="color:#333333"> GameRegistry.registerItem(coalDust, "coalDust");</span>
<span style="color:#333333"> GameRegistry.registerItem(ironPlate, "ironPlate");</span>
<span style="color:#333333"> GameRegistry.registerItem(steelPlate, "steelPlate");</span>
<span style="color:#333333"> GameRegistry.registerItem(ironGear, "ironGear");</span>
<span style="color:#333333"> GameRegistry.registerItem(steelGear, "steelGear");</span>
<span style="color:#333333"> GameRegistry.registerItem(steelDust, "steelDust");</span>
<span style="color:#333333"> GameRegistry.registerItem(ironDust, "ironDust");</span>
<span style="color:#333333"> GameRegistry.registerItem(redstoneCrystal, "redstoneCrystal");</span>
<span style="color:#333333"> GameRegistry.registerItem(Engine, "Engine");</span>
<span style="color:#333333"> GameRegistry.registerItem(Pliers, "Pliers");</span>
<span style="color:#333333"> GameRegistry.registerItem(copperIngot, "copperIngot");</span>
<span style="color:#333333"> GameRegistry.registerItem(copperDust, "copperDust");</span>
<span style="color:#333333"> GameRegistry.registerItem(copperGear, "copperGear");</span>
<span style="color:#333333"> GameRegistry.registerItem(copperPlate, "copperPlate");</span>
<span style="color:#333333"> GameRegistry.registerItem(crusherBlade, "crusherBlade");</span>
<span style="color:#333333"> GameRegistry.registerItem(SteelPickaxe, "SteelPickaxe");</span>
<span style="color:#333333"> GameRegistry.registerItem(SteelAxe, "SteelAxe");</span>
<span style="color:#333333"> GameRegistry.registerItem(SteelShovel, "SteelShovel");</span>
<span style="color:#333333"> GameRegistry.registerItem(SteelSword, "SteelSword");</span>
<span style="color:#333333"> GameRegistry.registerItem(SteelHoe, "SteelHoe");</span>
<span style="color:#333333"> GameRegistry.registerItem(copperCable, "copperCable");</span>
<span style="color:#333333"> GameRegistry.registerItem(tinCable, "tinCable");</span>
<span style="color:#333333"> GameRegistry.registerItem(tinGear, "tinGear");</span>
<span style="color:#333333"> GameRegistry.registerItem(tinDust, "tinDust");</span>
<span style="color:#333333"> GameRegistry.registerItem(tinIngot, "tinIngot");</span>
<span style="color:#333333"> GameRegistry.registerItem(tinPlate, "tinPlate");</span>
<span style="color:#333333"> GameRegistry.registerItem(goldDust, "goldDust");</span>
<span style="color:#333333"> GameRegistry.registerItem(goldPlate, "goldPlate");</span>
<span style="color:#333333"> GameRegistry.registerItem(electronicChipset, "electronicChipset");</span>
<span style="color:#333333"> GameRegistry.registerItem(RedstoneDrill, "RedstoneDrill");</span>
<span style="color:#333333"> GameRegistry.registerItem(ElectricalEngine, "ElectricalEngine");</span>
<span style="color:#333333"> GameRegistry.registerItem(ElectricMotor, "ElectricMotor");</span>
<span style="color:#333333"> GameRegistry.registerItem(Coil, "Coil");</span>
<span style="color:#333333"> GameRegistry.registerItem(ToolBox, "ToolBox");</span>
<span style="color:#333333"> GameRegistry.registerItem(ElectronicGoldChipset,</span>
<span style="color:#333333"> "ElectronicGoldChipset");</span>

<span style="color:#333333"> GameRegistry.registerItem(BrokenLapisOre, "BrokenLapisOre");</span>
<span style="color:#333333"> GameRegistry.registerItem(BrokenIronOre, "BrokenIronOre");</span>
<span style="color:#333333"> GameRegistry.registerItem(BrokenCoalOre, "BrokenCoalOre");</span>
<span style="color:#333333"> GameRegistry.registerItem(BrokenRedstoneOre, "BrokenRedstoneOre");</span>
<span style="color:#333333"> GameRegistry.registerItem(BrokenCopperOre, "BrokenCopperOre");</span>
<span style="color:#333333"> GameRegistry.registerItem(BrokenTinOre, "BrokenTinOre");</span>
<span style="color:#333333"> GameRegistry.registerItem(BrokenDiamondOre, "BrokenDiamondOre");</span>
<span style="color:#333333"> GameRegistry.registerItem(BrokenEmeraldOre, "BrokenEmeraldOre");</span>
<span style="color:#333333"> GameRegistry.registerItem(BrokenGoldOre, "BrokenGoldOre");</span>

<span style="color:#333333"> GameRegistry.registerItem(BronzeIngot, "BronzeIngot");</span>
<span style="color:#333333"> GameRegistry.registerItem(BronzeDust, "BronzeDust");</span>

<span style="color:#333333"> GameRegistry.registerItem(BronzeAxe, "BronzeAxe");</span>
<span style="color:#333333"> GameRegistry.registerItem(BronzePickaxe, "BronzePickaxe");</span>
<span style="color:#333333"> GameRegistry.registerItem(BronzeShovel, "BronzeShovel");</span>
<span style="color:#333333"> GameRegistry.registerItem(BronzeHoe, "BronzeHoe");</span>
<span style="color:#333333"> GameRegistry.registerItem(BronzeSword, "BronzeSword");</span>

<span style="color:#333333"> // Blocks –-------------------------------------------</span>

<span style="color:#333333"> GameRegistry.registerBlock(Crusher, "Crusher");</span>
<span style="color:#333333"> GameRegistry.registerBlock(MachineBlock, "MachineBlock");</span>
<span style="color:#333333"> GameRegistry.registerBlock(Furnace, "Furnace");</span>
<span style="color:#333333"> GameRegistry.registerBlock(CopperOre, "CopperOre");</span>
<span style="color:#333333"> GameRegistry.registerBlock(TinOre, "TinOre");</span>
<span style="color:#333333"> GameRegistry.registerBlock(Alloyer, "Alloyer");</span>

<span style="color:#333333"> // TileEntity –-------------------------------------------</span>

<span style="color:#333333"> GameRegistry.registerTileEntity(TileCrusher.class,</span>
<span style="color:#333333"> "modmechanicalcraft:Crusher");</span>

<span style="color:#333333"> GameRegistry.registerTileEntity(TileFurnace.class,</span>
<span style="color:#333333"> "modmechanicalcraft:Furnace");</span>

<span style="color:#333333"> GameRegistry.registerTileEntity(TileEntityAlloyer.class,</span>
<span style="color:#333333"> "modmechanicalcraft:Alloyer");</span>

<span style="color:#333333"> // Other–---------------------------------------------------------------</span>

<span style="color:#333333"> // –--------------------------------------------------------------------------------------------------------------------</span>

<span style="color:#333333"> // Recipe –------------------------------------------------------------</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(Wrench, 1, 0), new Object[</span>{"I I",]
<span style="color:#333333"> " O ", " I ", 'I', new ItemStack(Items.iron_ingot, 1, 0), 'O',</span>
<span style="color:#333333"> new ItemStack(Items.dye, 1, 14)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(Hammer, 1, 0), new Object[</span>{"III",]
<span style="color:#333333"> "III", " S ", 'S', new ItemStack(Items.stick, 1, 0), 'I',</span>
<span style="color:#333333"> new ItemStack(Items.iron_ingot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry</span>
<span style="color:#333333"> .addShapelessRecipe(new ItemStack(ironPlate, 2, 0),</span>
<span style="color:#333333"> new Object[</span>{]
<span style="color:#333333"> new ItemStack(Items.iron_ingot, 1, 0),</span>
<span style="color:#333333"> new ItemStack(Hammer, 1,</span>
<span style="color:#333333"> OreDictionary.WILDCARD_VALUE)});</span>

<span style="color:#333333"> GameRegistry</span>
<span style="color:#333333"> .addShapelessRecipe(new ItemStack(tinPlate, 2, 0),</span>
<span style="color:#333333"> new Object[</span>{]
<span style="color:#333333"> new ItemStack(tinIngot, 1, 0),</span>
<span style="color:#333333"> new ItemStack(Hammer, 1,</span>
<span style="color:#333333"> OreDictionary.WILDCARD_VALUE)});</span>
<span style="color:#333333"> GameRegistry</span>
<span style="color:#333333"> .addShapelessRecipe(new ItemStack(goldPlate, 2, 0),</span>
<span style="color:#333333"> new Object[</span>{]
<span style="color:#333333"> new ItemStack(Items.gold_ingot, 1, 0),</span>
<span style="color:#333333"> new ItemStack(Hammer, 1,</span>
<span style="color:#333333"> OreDictionary.WILDCARD_VALUE)});</span>

<span style="color:#333333"> GameRegistry</span>
<span style="color:#333333"> .addShapelessRecipe(new ItemStack(steelPlate, 2), new Object[</span>{]
<span style="color:#333333"> new ItemStack(steelIngot, 1, 0),</span>
<span style="color:#333333"> new ItemStack(Hammer, 1, OreDictionary.WILDCARD_VALUE)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(ironGear, 1, 0), new Object[</span>{]
<span style="color:#333333"> " I ", "ICI", " I ", 'I',</span>
<span style="color:#333333"> new ItemStack(Items.iron_ingot, 1, 0), 'C',</span>
<span style="color:#333333"> new ItemStack(copperGear, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(steelGear, 1, 0), new Object[</span>{]
<span style="color:#333333"> " L ", "LIL", " L ", 'L', new ItemStack(steelIngot, 1, 0), 'I',</span>
<span style="color:#333333"> new ItemStack(ironGear, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(crusherBlade, 1, 0), new Object[</span>{]
<span style="color:#333333"> " D ", "DID", " D ", 'I',</span>
<span style="color:#333333"> new ItemStack(Items.iron_ingot, 1, 0), 'D',</span>
<span style="color:#333333"> new ItemStack(Items.diamond, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addShapelessRecipe(new ItemStack(steelDust, 2),</span>
<span style="color:#333333"> new Object[</span>{new ItemStack(ironDust, 1, 0),]
<span style="color:#333333"> new ItemStack(ironDust, 1, 0),</span>
<span style="color:#333333"> new ItemStack(coalDust, 1, 0),</span>
<span style="color:#333333"> new ItemStack(coalDust, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(redstoneCrystal, 1, 0),</span>
<span style="color:#333333"> new Object[</span>{"RRR", "RDR", "RRR", 'R',]
<span style="color:#333333"> new ItemStack(Items.redstone, 1, 0), 'D',</span>
<span style="color:#333333"> new ItemStack(Items.diamond, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(Pliers, 1, 0), new Object[</span>{"I I",]
<span style="color:#333333"> " I ", "D D", 'I', new ItemStack(Items.iron_ingot, 1, 0), 'D',</span>
<span style="color:#333333"> new ItemStack(Items.dye, 1, 6)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(Engine, 1, 0), new Object[</span>{"PGP",]
<span style="color:#333333"> "PFP", "PGP", 'G', new ItemStack(ironGear, 1, 0), 'P',</span>
<span style="color:#333333"> new ItemStack(ironPlate, 1, 0), 'F',</span>
<span style="color:#333333"> new ItemStack(Blocks.furnace, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(copperGear, 2, 0), new Object[</span>{]
<span style="color:#333333"> " C ", "CCC", " C ", 'C', new ItemStack(copperIngot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(tinGear, 2, 0), new Object[</span>{]
<span style="color:#333333"> " T ", "TTT", " T ", 'T', new ItemStack(tinIngot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry</span>
<span style="color:#333333"> .addShapelessRecipe(new ItemStack(copperPlate, 2, 0),</span>
<span style="color:#333333"> new Object[</span>{]
<span style="color:#333333"> new ItemStack(copperIngot, 1, 0),</span>
<span style="color:#333333"> new ItemStack(Hammer, 1,</span>
<span style="color:#333333"> OreDictionary.WILDCARD_VALUE)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(MachineBlock, 2, 0), new Object[</span>{]
<span style="color:#333333"> "PPP", "P P", "PPP", 'P', new ItemStack(ironPlate, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(Crusher, 1, 0), new Object[</span>{]
<span style="color:#333333"> "PMP", "PEP", "PBP", 'P', new ItemStack(ironPlate), 'M',</span>
<span style="color:#333333"> new ItemStack(MachineBlock), 'E', new ItemStack(Engine), 'B',</span>
<span style="color:#333333"> new ItemStack(crusherBlade)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(Alloyer, 1, 0), new Object[</span>{]
<span style="color:#333333"> "PMP", "PEP", "PGP", 'P', new ItemStack(ironPlate), 'M',</span>
<span style="color:#333333"> new ItemStack(MachineBlock), 'E', new ItemStack(Engine), 'G',</span>
<span style="color:#333333"> new ItemStack(ironGear)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(SteelPickaxe, 1, 0), new Object[</span>{]
<span style="color:#333333"> "III", " S ", " S ", 'S', new ItemStack(Items.stick, 1, 0),</span>
<span style="color:#333333"> 'I', new ItemStack(steelIngot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(SteelAxe, 1, 0), new Object[</span>{]
<span style="color:#333333"> " II", " SI", " S ", 'S', new ItemStack(Items.stick, 1, 0),</span>
<span style="color:#333333"> 'I', new ItemStack(steelIngot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(SteelAxe, 1, 0), new Object[</span>{]
<span style="color:#333333"> "II ", "IS ", " S ", 'S', new ItemStack(Items.stick, 1, 0),</span>
<span style="color:#333333"> 'I', new ItemStack(steelIngot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(SteelShovel, 1, 0), new Object[</span>{]
<span style="color:#333333"> " I ", " S ", " S ", 'S', new ItemStack(Items.stick, 1, 0),</span>
<span style="color:#333333"> 'I', new ItemStack(steelIngot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(SteelShovel, 1, 0), new Object[</span>{]
<span style="color:#333333"> "  I", "  S", "  S", 'S', new ItemStack(Items.stick, 1, 0),</span>
<span style="color:#333333"> 'I', new ItemStack(steelIngot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(SteelShovel, 1, 0), new Object[</span>{]
<span style="color:#333333"> "I  ", "S  ", "S  ", 'S', new ItemStack(Items.stick, 1, 0),</span>
<span style="color:#333333"> 'I', new ItemStack(steelIngot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(SteelHoe, 1, 0), new Object[</span>{]
<span style="color:#333333"> " II", " S ", " S ", 'S', new ItemStack(Items.stick, 1, 0),</span>
<span style="color:#333333"> 'I', new ItemStack(steelIngot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(SteelHoe, 1, 0), new Object[</span>{]
<span style="color:#333333"> "II ", " S ", " S ", 'S', new ItemStack(Items.stick, 1, 0),</span>
<span style="color:#333333"> 'I', new ItemStack(steelIngot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(SteelSword, 1, 0), new Object[</span>{]
<span style="color:#333333"> " I ", " I ", " S ", 'S', new ItemStack(Items.stick, 1, 0),</span>
<span style="color:#333333"> 'I', new ItemStack(steelIngot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(SteelSword, 1, 0), new Object[</span>{]
<span style="color:#333333"> "I  ", "I  ", "S  ", 'S', new ItemStack(Items.stick, 1, 0),</span>
<span style="color:#333333"> 'I', new ItemStack(steelIngot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(SteelSword, 1, 0), new Object[</span>{]
<span style="color:#333333"> "  I", "  I", "  S", 'S', new ItemStack(Items.stick, 1, 0),</span>
<span style="color:#333333"> 'I', new ItemStack(steelIngot, 1, 0)});</span>

<span style="color:#333333"> GameRegistry</span>
<span style="color:#333333"> .addShapelessRecipe(new ItemStack(copperCable, 3),</span>
<span style="color:#333333"> new Object[</span>{]
<span style="color:#333333"> new ItemStack(copperIngot, 1, 0),</span>
<span style="color:#333333"> new ItemStack(Pliers, 1,</span>
<span style="color:#333333"> OreDictionary.WILDCARD_VALUE)});</span>

<span style="color:#333333"> GameRegistry</span>
<span style="color:#333333"> .addShapelessRecipe(new ItemStack(tinCable, 3), new Object[</span>{]
<span style="color:#333333"> new ItemStack(tinIngot, 1, 0),</span>
<span style="color:#333333"> new ItemStack(Pliers, 1, OreDictionary.WILDCARD_VALUE)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(electronicChipset, 1, 0),</span>
<span style="color:#333333"> new Object[</span>{"CPC", "CRC", "CPC", 'P',]
<span style="color:#333333"> new ItemStack(tinPlate, 1, 0), 'R',</span>
<span style="color:#333333"> new ItemStack(redstoneCrystal, 1, 0), 'C',</span>
<span style="color:#333333"> new ItemStack(copperCable, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(Furnace, 1, 0), new Object[</span>{]
<span style="color:#333333"> "PMP", "PEP", "PBP", 'P', new ItemStack(ironPlate), 'M',</span>
<span style="color:#333333"> new ItemStack(MachineBlock), 'E', new ItemStack(Engine), 'B',</span>
<span style="color:#333333"> new ItemStack(Blocks.furnace)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(ElectricalEngine, 1, 0),</span>
<span style="color:#333333"> new Object[</span>{"PGP", "PMP", "PGP", 'G',]
<span style="color:#333333"> new ItemStack(steelGear, 1, 0), 'M',</span>
<span style="color:#333333"> new ItemStack(ElectricMotor, 1, 0), 'P',</span>
<span style="color:#333333"> new ItemStack(steelPlate, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(ElectricMotor, 1, 0),</span>
<span style="color:#333333"> new Object[</span>{"CPP", "PBP", "CPP", 'B',]
<span style="color:#333333"> new ItemStack(Coil, 1, 0), 'P',</span>
<span style="color:#333333"> new ItemStack(tinPlate, 1, 0), 'C',</span>
<span style="color:#333333"> new ItemStack(copperCable, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(RedstoneDrill, 1, 0),</span>
<span style="color:#333333"> new Object[</span>{"PCC", "PGC", "EPP", 'E',]
<span style="color:#333333"> new ItemStack(ElectronicGoldChipset, 1, 0), 'C',</span>
<span style="color:#333333"> new ItemStack(redstoneCrystal, 1, 0), 'P',</span>
<span style="color:#333333"> new ItemStack(steelPlate, 1, 0), 'G',</span>
<span style="color:#333333"> new ItemStack(ElectricalEngine, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addRecipe(new ItemStack(ElectronicGoldChipset, 1, 0),</span>
<span style="color:#333333"> new Object[</span>{"CSC", "CPC", "CSC", 'P',]
<span style="color:#333333"> new ItemStack(goldPlate, 1, 0), 'S',</span>
<span style="color:#333333"> new ItemStack(electronicChipset, 1, 0), 'C',</span>
<span style="color:#333333"> new ItemStack(copperCable, 1, 0)});</span>

<span style="color:#333333"> GameRegistry.addShapelessRecipe(new ItemStack(BronzeDust, 2),</span>
<span style="color:#333333"> new Object[</span>{new ItemStack(tinDust, 1, 0),]
<span style="color:#333333"> new ItemStack(tinDust, 1, 0),</span>
<span style="color:#333333"> new ItemStack(copperDust, 1, 0),</span>
<span style="color:#333333"> new ItemStack(copperDust, 1, 0)});</span>

<span style="color:#333333"> // Smelt Recipe –-----------------------------</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(steelDust), new ItemStack(</span>
<span style="color:#333333"> steelIngot), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(copperDust), new ItemStack(</span>
<span style="color:#333333"> copperIngot), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(ironDust), new ItemStack(</span>
<span style="color:#333333"> Items.iron_ingot), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(tinDust),</span>
<span style="color:#333333"> new ItemStack(tinIngot), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(goldDust), new ItemStack(</span>
<span style="color:#333333"> Items.gold_ingot), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(BronzeDust), new ItemStack(</span>
<span style="color:#333333"> BronzeIngot), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(BrokenIronOre), new ItemStack(</span>
<span style="color:#333333"> Items.iron_ingot), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(BrokenGoldOre), new ItemStack(</span>
<span style="color:#333333"> Items.gold_ingot), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(BrokenTinOre), new ItemStack(</span>
<span style="color:#333333"> tinIngot), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(BrokenCopperOre), new ItemStack(</span>
<span style="color:#333333"> copperIngot), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(TinOre),</span>
<span style="color:#333333"> new ItemStack(tinIngot), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(CopperOre), new ItemStack(</span>
<span style="color:#333333"> copperIngot), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(BrokenRedstoneOre),</span>
<span style="color:#333333"> new ItemStack(Items.redstone), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(BrokenLapisOre), new ItemStack(</span>
<span style="color:#333333"> Items.dye, 1, 4), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(BrokenDiamondOre),</span>
<span style="color:#333333"> new ItemStack(Items.diamond), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(BrokenEmeraldOre),</span>
<span style="color:#333333"> new ItemStack(Items.emerald), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(BrokenCoalOre), new ItemStack(</span>
<span style="color:#333333"> Items.coal), 30);</span>

<span style="color:#333333"> GameRegistry.addSmelting(new ItemStack(BronzeDust), new ItemStack(</span>
<span style="color:#333333"> BronzeIngot), 30);</span>

<span style="color:#333333"> // =========================================================================================================</span>

<span style="color:#333333"> }</span>

<span style="color:#333333"> @EventHandler</span>
<span style="color:#333333"> public void init(FMLInitializationEvent event) {</span>
<span style="color:#333333"> proxy.registerRender();</span>

<span style="color:#333333"> }</span>

<span style="color:#333333"> @EventHandler</span>
<span style="color:#333333"> public void postInit(FMLPostInitializationEvent event) {</span>

<span style="color:#333333"> MinecraftForge.EVENT_BUS.register(new BlockEventHandler());</span>
<span style="color:#333333"> }</span>

<span style="color:#333333"> public static final String MODID = "modmechanicalcraft";</span>

<span style="color:#333333">}</span>
</code></pre>
<p dir="auto"><span style="color:#3366ff"><em>Class de mon bloc :</em></span></p>
<pre><code class="java">​package com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer;

import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;

import com.google.SpyMan.Mechanicalcraft.common.mod_mechanicalcraft;

public class Alloyer extends BlockContainer
{

    public Alloyer(Material material)
    {
        super(material);
        setResistance(30);
        setHardness(3);
    }
    private IIcon top, bottom, left, right, back;

public void registerBlockIcons(IIconRegister iiconRegister)

{

this.blockIcon = iiconRegister
.registerIcon("modmechanicalcraft:AlloyerFront");
this.top = iiconRegister.registerIcon("modmechanicalcraft:crusher_top");
this.bottom = iiconRegister
.registerIcon("modmechanicalcraft:crusher_bottom");
this.left = iiconRegister
.registerIcon("modmechanicalcraft:crusher_left_right");
this.right = iiconRegister
.registerIcon("modmechanicalcraft:crusher_left_right");
this.back = iiconRegister
.registerIcon("modmechanicalcraft:crusher_left_right");

}
public void onBlockPlacedBy(World world, int x, int y, int z,
EntityLivingBase living, ItemStack stack) {
int direction = MathHelper
.floor_double((double) (living.rotationYaw * 4.0F / 360.0F) + 2.5D) &amp; 3;
world.setBlockMetadataWithNotify(x, y, z, direction, 2);
}
public IIcon getIcon(int side, int metadata) {

if (side == 0)
return this.bottom;
else if (side == 1)
return this.top;

{
if ((side == 3 &amp;&amp; metadata == 0) || (side == 4 &amp;&amp; metadata == 1)
|| (side == 2 &amp;&amp; metadata == 2)
|| (side == 5 &amp;&amp; metadata == 3)) {
return this.blockIcon;

}
return this.left;

}

}
    public TileEntity createNewTileEntity(World world, int metadata)
    {
        return new TileEntityAlloyer();
    }

    @Override
    public boolean hasTileEntity(int metadata)
    {
        return true;
    }

    public void breakBlock(World world, int x, int y, int z, Block block, int metadata)
    {
        TileEntity tileentity = world.getTileEntity(x, y, z);

                if (tileentity instanceof IInventory)
                {
                    IInventory inv = (IInventory)tileentity;
                    for (int i1 = 0; i1 &lt; inv.getSizeInventory(); ++i1)
                    {
                        ItemStack itemstack = inv.getStackInSlot(i1);

                        if (itemstack != null)
                        {
                            float f = world.rand.nextFloat() * 0.8F + 0.1F;
                            float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
                            EntityItem entityitem;

                            for (float f2 = world.rand.nextFloat() * 0.8F + 0.1F; itemstack.stackSize &gt; 0; world.spawnEntityInWorld(entityitem))
                            {
                                int j1 = world.rand.nextInt(21) + 10;

                                if (j1 &gt; itemstack.stackSize)
                                {
                                    j1 = itemstack.stackSize;
                                }

                                itemstack.stackSize -= j1;
                                entityitem = new EntityItem(world, (double)((float)x + f), (double)((float)y + f1), (double)((float)z + f2), new ItemStack(itemstack.getItem(), j1, itemstack.getItemDamage()));
                                float f3 = 0.05F;
                                entityitem.motionX = (double)((float)world.rand.nextGaussian() * f3);
                                entityitem.motionY = (double)((float)world.rand.nextGaussian() * f3 + 0.2F);
                                entityitem.motionZ = (double)((float)world.rand.nextGaussian() * f3);

                                if (itemstack.hasTagCompound())
                                {
                                    entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());
                                }
                            }
                        }
                    }

                world.func_147453_f(x, y, z, block);
            }

        super.breakBlock(world, x, y, z, block, metadata);
    }

    public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitx, float hity, float hitz)
    {
        if (world.isRemote)
        {
            return true;
        }
        else
        {

            player.openGui(mod_mechanicalcraft.Alloyer, 2, world, x, y, z);
            return true;

        }
    }
}
</code></pre>
<p dir="auto"><span style="color:#3366ff"><em>Class TileEntity :</em></span></p>
<pre><code class="java">​package com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.tileentity.TileEntity;

public class TileEntityAlloyer extends TileEntity
{
private byte direction;
public byte getDirection() {
return direction;
}

public void setDirection(byte direction) {
this.direction = direction;
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
}

    private ItemStack[] contents = new ItemStack[4];
    private int workingTime = 0;
    private int workingTimeNeeded = 0;

    @Override
    public void writeToNBT(NBTTagCompound compound)
    {
        super.writeToNBT(compound);
        NBTTagList nbttaglist = new NBTTagList();
        compound.setByte("Direction", this.direction);
        for(int i = 0; i &lt; this.contents.length; ++i)
        {
            if(this.contents* != null)
            {
                NBTTagCompound nbttagcompound1 = new NBTTagCompound();
                nbttagcompound1.setByte("Slot", (byte)i);
                this.contents*.writeToNBT(nbttagcompound1);
                nbttaglist.appendTag(nbttagcompound1);

            }
        }

        compound.setTag("Items", nbttaglist);
        compound.setShort("workingTime", (short)this.workingTime);
        compound.setShort("workingTimeNeeded", (short)this.workingTimeNeeded);
    }

    @Override
    public void readFromNBT(NBTTagCompound compound)
    {
        super.readFromNBT(compound);
        this.direction = compound.getByte("Direction");
        NBTTagList nbttaglist = compound.getTagList("Items", 10);
        this.contents = new ItemStack[this.getSizeInventory()];

        for(int i = 0; i &lt; nbttaglist.tagCount(); ++i)
        {
            NBTTagCompound nbttagcompound1 = nbttaglist.getCompoundTagAt(i);
            int j = nbttagcompound1.getByte("Slot") &amp; 255;

            if(j &gt;= 0 &amp;&amp; j &lt; this.contents.length)
            {
                this.contents[j] = ItemStack.loadItemStackFromNBT(nbttagcompound1);
            }
        }

        this.workingTime = compound.getShort("workingTime");
        this.workingTimeNeeded = compound.getShort("workingTimeNeeded");
    }

    public int getSizeInventory()
    {
        return this.contents.length;
    }

    public ItemStack getStackInSlot(int slotIndex)
    {
        return this.contents[slotIndex];
    }

    public ItemStack decrStackSize(int slotIndex, int amount)
    {
        if(this.contents[slotIndex] != null)
        {
            ItemStack itemstack;

            if(this.contents[slotIndex].stackSize &lt;= amount)
            {
                itemstack = this.contents[slotIndex];
                this.contents[slotIndex] = null;
                this.markDirty();
                return itemstack;
            }
            else
            {
                itemstack = this.contents[slotIndex].splitStack(amount);

                if(this.contents[slotIndex].stackSize == 0)
                {
                    this.contents[slotIndex] = null;
                }

                this.markDirty();
                return itemstack;
            }
        }
        else
        {
            return null;
        }
    }

    public ItemStack getStackInSlotOnClosing(int slotIndex)
    {
        if(this.contents[slotIndex] != null)
        {
            ItemStack itemstack = this.contents[slotIndex];
            this.contents[slotIndex] = null;
            return itemstack;
        }
        else
        {
            return null;
        }
    }

    public void setInventorySlotContents(int slotIndex, ItemStack stack)
    {
        this.contents[slotIndex] = stack;

        if(stack != null &amp;&amp; stack.stackSize &gt; this.getInventoryStackLimit())
        {
            stack.stackSize = this.getInventoryStackLimit();
        }

        this.markDirty();
    }

    public String getInventoryName()
    {
        return "tile.Alloyer";
    }

    public boolean hasCustomInventoryName()
    {
        return false;
    }

    public int getInventoryStackLimit()
    {
        return 64;
    }

    public boolean isUseableByPlayer(EntityPlayer player)
    {
        return this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord) != this ? false : player.getDistanceSq((double)this.xCoord + 0.5D, (double)this.yCoord + 0.5D, (double)this.zCoord + 0.5D) &lt;= 64.0D;
    }

    public void openInventory()
    {

    }

    public void closeInventory()
    {

    }

    public boolean isItemValidForSlot(int slot, ItemStack stack)
    {
        return slot == 3 ? false : true;
    }

    public boolean isBurning()
    {
        return this.workingTime &gt; 0;
    }

    private boolean canSmelt()
    {
        if(this.contents[0] == null || this.contents[1] == null || this.contents[2] == null)
        {
            return false;
        }
        else
        {
            ItemStack itemstack = AlloyerRecipes.smelting().getSmeltingResult(new ItemStack[] {this.contents[0], this.contents[1], this.contents[2]});
            if(itemstack == null)
                return false;
            if(this.contents[3] == null)
                return true;
            if(!this.contents[3].isItemEqual(itemstack))
                return false;
            int result = contents[3].stackSize + itemstack.stackSize;
            return result &lt;= getInventoryStackLimit() &amp;&amp; result &lt;= this.contents[3].getMaxStackSize();
        }
    }

    public void updateEntity()
    {
        if(this.isBurning() &amp;&amp; this.canSmelt())
        {
            ++this.workingTime;
        }
        if(this.canSmelt() &amp;&amp; !this.isBurning())
        {
            this.workingTime = 1;
        }
        if(this.canSmelt() &amp;&amp; this.workingTime == this.workingTimeNeeded)
        {
            this.smeltItem();
            this.workingTime = 0;
        }
        if(!this.canSmelt())
        {
            this.workingTime = 0;
        }
    }

    public void smeltItem()
    {
        if(this.canSmelt())
        {
            ItemStack itemstack = AlloyerRecipes.smelting().getSmeltingResult(new ItemStack[] {this.contents[0], this.contents[1], this.contents[2]});
            if(this.contents[3] == null)
            {
                this.contents[3] = itemstack.copy();
            }
            else if(this.contents[3].getItem() == itemstack.getItem())
            {
                this.contents[3].stackSize += itemstack.stackSize;
            }

            –this.contents[0].stackSize;
            –this.contents[1].stackSize;
            –this.contents[2].stackSize;

            if(this.contents[0].stackSize &lt;= 0)
            {
                this.contents[0] = null;
            }
            if(this.contents[1].stackSize &lt;= 0)
            {
                this.contents[1] = null;
            }
            if(this.contents[2].stackSize &lt;= 0)
            {
                this.contents[2] = null;
            }
        }
    }
}
</code></pre>
<p dir="auto"><em><span style="color:#3366ff">Class Container :</span></em></p>
<pre><code class="java">​package com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import com.google.SpyMan.Mechanicalcraft.common.*;

public class ContainerAlloyer extends Container
{
private TileEntityAlloyer tileAlloyer;

public ContainerAlloyer(TileEntityAlloyer tile, InventoryPlayer inventory)
{
    this.tileAlloyer = tile;
    this.addSlotToContainer(new Slot((IInventory)tile, 0, 49, 75));
    this.addSlotToContainer(new Slot((IInventory)tile, 1, 89, 75));
    this.addSlotToContainer(new Slot((IInventory)tile, 2, 129, 75));
    this.addSlotToContainer(new SlotResult(tile, 3, 89, 135));
    this.bindPlayerInventory(inventory);
}

@Override
public boolean canInteractWith(EntityPlayer player) {
    return this.tileAlloyer.isUseableByPlayer(player);
}

private void bindPlayerInventory(InventoryPlayer inventory)
{
    int i;
    for (i = 0; i &lt; 3; ++i)
    {
        for (int j = 0; j &lt; 9; ++j)
        {
            this.addSlotToContainer(new Slot(inventory, j + i * 9 + 9, 17 + j * 18, 171 + i * 18));
        }
    }

    for (i = 0; i &lt; 9; ++i)
    {
        this.addSlotToContainer(new Slot(inventory, i, 17 + i * 18, 229));
    }
}

public ItemStack transferStackInSlot(EntityPlayer player, int quantity)
{
    ItemStack itemstack = null;
    Slot slot = (Slot)this.inventorySlots.get(quantity);

    if (slot != null &amp;&amp; slot.getHasStack())
    {
        ItemStack itemstack1 = slot.getStack();
        itemstack = itemstack1.copy();

        if (quantity &lt; this.tileAlloyer.getSizeInventory())
        {
            if (!this.mergeItemStack(itemstack1, this.tileAlloyer.getSizeInventory(), this.inventorySlots.size(), true))
            {
                return null;
            }
        }
        else if (!this.mergeItemStack(itemstack1, 0, this.tileAlloyer.getSizeInventory(), false))
        {
            return null;
        }

        if (itemstack1.stackSize == 0)
        {
            slot.putStack((ItemStack)null);
        }
        else
        {
            slot.onSlotChanged();
        }
    }

    return itemstack;
}

public void onContainerClosed(EntityPlayer player)
{
    super.onContainerClosed(player);
    this.tileAlloyer.closeInventory();
}
}
</code></pre>
<p dir="auto"><em><span style="color:#3366ff">Class Gui :</span></em></p>
<pre><code class="java">​package com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer;

import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.util.ResourceLocation;
import com.google.SpyMan.Mechanicalcraft.common.*;

import org.lwjgl.opengl.GL11;

public class GuiAlloyer extends GuiContainer
{
    private static final ResourceLocation texture = new ResourceLocation(mod_mechanicalcraft.MODID,"textures/gui/container/GuiAlloyer.png");
    private TileEntityAlloyer tileAlloyer;
    private IInventory playerInv;

    public GuiAlloyer(TileEntityAlloyer tile, InventoryPlayer inventory) 
    {
        super(new ContainerAlloyer(tile, inventory));
        this.tileAlloyer = tile;
        this.playerInv = inventory;
        this.allowUserInput = false;
        this.ySize = 256;
        this.xSize = 256;
    }

    @Override
    protected void drawGuiContainerBackgroundLayer(float partialRenderTick, int x, int y) 
    {

        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        this.mc.getTextureManager().bindTexture(texture);
        int k = (this.width - this.xSize) / 2;
        int l = (this.height - this.ySize) / 2;
        this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
        this.drawTexturedModalRect(0, 0, 176, 14, 100 + 1, 16);

    }

    protected void drawGuiContainerForegroundLayer(int x, int y)
    {
        this.fontRendererObj.drawString(this.playerInv.hasCustomInventoryName() ? this.playerInv.getInventoryName() : I18n.format(this.playerInv.getInventoryName()), 10, this.ySize - 98, 4210752);
    }

}
</code></pre>
<p dir="auto"><em><span style="color:#3366ff">Class SlotResult :</span></em></p>
<pre><code class="java">​package com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;

public class SlotResult extends Slot
{
    public SlotResult(TileEntityAlloyer tile, int id, int x, int y) 
    {
        super((IInventory)tile, id, x, y);
    }

    @Override
    public boolean isItemValid(ItemStack stack)
    {
        return false;
    }

    public ItemStack decrStackSize(int amount)
    {
        return super.decrStackSize(amount);
    }

    public void onPickupFromSlot(EntityPlayer player, ItemStack stack)
    {
        super.onCrafting(stack);
        super.onPickupFromSlot(player, stack);
    }
}
</code></pre>
]]></description><link>https://www.minecraftforgefrance.fr/topic/2070/error-gui</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 12:46:55 GMT</lastBuildDate><atom:link href="https://www.minecraftforgefrance.fr/topic/2070.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Jun 2015 10:04:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Error Gui] on Mon, 29 Jun 2015 15:36:20 GMT]]></title><description><![CDATA[<p dir="auto">Ok je comprend mieux maintenant ce dis-fonctionnement, merci de votre aide.  :shy:</p>
]]></description><link>https://www.minecraftforgefrance.fr/post/27793</link><guid isPermaLink="true">https://www.minecraftforgefrance.fr/post/27793</guid><dc:creator><![CDATA[SpyMan]]></dc:creator><pubDate>Mon, 29 Jun 2015 15:36:20 GMT</pubDate></item><item><title><![CDATA[Reply to [Error Gui] on Sun, 28 Jun 2015 19:25:52 GMT]]></title><description><![CDATA[<p dir="auto">player.openGui(mod_mechanicalcraft.Alloyer, 2, world, x, y, z);<br />
???<br />
Tu es sensé mettre l’instance ici en plus du gui handler qui est visiblement manquant.</p>
]]></description><link>https://www.minecraftforgefrance.fr/post/27737</link><guid isPermaLink="true">https://www.minecraftforgefrance.fr/post/27737</guid><dc:creator><![CDATA[robin4002]]></dc:creator><pubDate>Sun, 28 Jun 2015 19:25:52 GMT</pubDate></item><item><title><![CDATA[Reply to [Error Gui] on Sun, 28 Jun 2015 13:38:21 GMT]]></title><description><![CDATA[<p dir="auto">Et le GuiHandler ?</p>
]]></description><link>https://www.minecraftforgefrance.fr/post/27706</link><guid isPermaLink="true">https://www.minecraftforgefrance.fr/post/27706</guid><dc:creator><![CDATA[SCAREX]]></dc:creator><pubDate>Sun, 28 Jun 2015 13:38:21 GMT</pubDate></item></channel></rss>