Guest User

Gui Furnace Chest

a guest
Apr 27th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. public class GuiFurnaceChest extends GuiContainer {
  2.  
  3.     public GuiFurnaceChest(EntityPlayer player, World w, int x, int y, int z) {
  4.         super(player.inventoryContainer);
  5.        
  6.     }
  7.  
  8.     @Override
  9.     protected void drawGuiContainerBackgroundLayer(float par1, int par2,
  10.                     int par3) {
  11.             //draw your Gui here, only thing you need to change is the path
  12.             GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
  13.             this.mc.renderEngine.bindTexture("/gui/container.png");
  14.             /*drawTexturedModalRect( Xpos, Ypos, U, V, Width, Height */
  15.             this.drawTexturedModalRect(this.xSize / 2, this.ySize / 2, 0, 0, this.xSize, this.ySize);
  16.            
  17.     }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment