Advertisement
Guest User

GUI

a guest
May 2nd, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.00 KB | None | 0 0
  1. package com.mazetar.mazLearnedThis.gui;
  2.  
  3. import org.lwjgl.opengl.GL11;
  4.  
  5. import com.mazetar.mazLearnedThis.CotainerFurnaceChest;
  6.  
  7. import net.minecraft.client.gui.inventory.GuiContainer;
  8. import net.minecraft.entity.player.EntityPlayer;
  9. import net.minecraft.world.World;
  10.  
  11. public class GuiFurnaceChest extends GuiContainer {
  12.    
  13.     public GuiFurnaceChest(Object container, EntityPlayer player, World w, int x, int y, int z) {
  14.          super((CotainerFurnaceChest)container);
  15.        
  16.     }
  17.  
  18.     @Override
  19.     protected void drawGuiContainerBackgroundLayer(float par1, int par2,
  20.                     int par3) {
  21.             //draw your Gui here, only thing you need to change is the path
  22.             GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
  23.             this.mc.renderEngine.bindTexture("/gui/container.png");
  24.             /*drawTexturedModalRect( Xpos, Ypos, U, V, Width, Height */
  25.             this.drawTexturedModalRect(this.xSize / 2, this.ySize / 2, 0, 0, this.xSize, this.ySize);
  26.            
  27.     }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement