    001package net.minecraft.client.gui.inventory;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005import net.minecraft.entity.player.InventoryPlayer;
    006import net.minecraft.inventory.ContainerWorkbench;
    007import net.minecraft.util.StatCollector;
    008import net.minecraft.world.World;
    009import org.lwjgl.opengl.GL11;
    010
    011@SideOnly(Side.CLIENT)
    012public class GuiCrafting extends GuiContainer
    013{
    014    public GuiCrafting(InventoryPlayer par1InventoryPlayer, World par2World, int par3, int par4, int par5)
    015    {
    016        super(new ContainerWorkbench(par1InventoryPlayer, par2World, par3, par4, par5));
    017    }
    018
    019    /**
    020     * Draw the foreground layer for the GuiContainer (everything in front of the items)
    021     */
    022    protected void drawGuiContainerForegroundLayer(int par1, int par2)
    023    {
    024        this.fontRenderer.drawString(StatCollector.translateToLocal("container.crafting"), 28, 6, 4210752);
    025        this.fontRenderer.drawString(StatCollector.translateToLocal("container.inventory"), 8, this.ySize - 96 + 2, 4210752);
    026    }
    027
    028    /**
    029     * Draw the background layer for the GuiContainer (everything behind the items)
    030     */
    031    protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
    032    {
    033        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    034        this.mc.renderEngine.bindTexture("/gui/crafting.png");
    035        int k = (this.width - this.xSize) / 2;
    036        int l = (this.height - this.ySize) / 2;
    037        this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
    038    }
    039}