Advertisement
Guest User

GuiStickyCrafting

a guest
Dec 21st, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.30 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. import org.lwjgl.opengl.GL11;
  4.  
  5. public class GuiStickyCrafting extends GuiContainer
  6. {
  7.     public GuiStickyCrafting(InventoryPlayer par1InventoryPlayer, World par2World, int par3, int par4, int par5)
  8.     {
  9.         super(new ContainerStickyWorkbench(par1InventoryPlayer, par2World, par3, par4, par5));
  10.     }
  11.  
  12.     /**
  13.      * Draw the foreground layer for the GuiContainer (everything in front of the items)
  14.      */
  15.     protected void drawGuiContainerForegroundLayer(int par1, int par2)
  16.     {
  17.         this.fontRenderer.drawString(StatCollector.translateToLocal("container.crafting"), 28, 6, 4210752);
  18.         this.fontRenderer.drawString(StatCollector.translateToLocal("container.inventory"), 8, this.ySize - 96 + 2, 4210752);
  19.     }
  20.  
  21.     /**
  22.      * Draw the background layer for the GuiContainer (everything behind the items)
  23.      */
  24.     protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
  25.     {
  26.         int var4 = this.mc.renderEngine.getTexture("/gui/crafting.png");
  27.         GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
  28.         this.mc.renderEngine.bindTexture(var4);
  29.         int var5 = (this.width - this.xSize) / 2;
  30.         int var6 = (this.height - this.ySize) / 2;
  31.         this.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize);
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement