Guest User

Untitled

a guest
Dec 30th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. package RUMatter.GUIs;
  2.  
  3. import org.lwjgl.opengl.GL11;
  4.  
  5. import net.minecraft.client.gui.inventory.GuiContainer;
  6. import net.minecraft.entity.player.InventoryPlayer;
  7. import net.minecraft.util.ResourceLocation;
  8. import net.minecraft.util.StatCollector;
  9. import RUMatter.containers.ContainerRUMad;
  10. import RUMatter.tileEntities.TileEntityRUMad;
  11.  
  12. public class GUIRUMad extends GuiContainer {
  13.  
  14. ResourceLocation texture = new ResourceLocation("chronoscraft", "textures/gui/RUMadGUI.png");
  15.  
  16. public GUIRUMad(InventoryPlayer inv, TileEntityRUMad tile) {
  17. super(new ContainerRUMad(inv, tile));
  18. }
  19.  
  20. @Override
  21. protected void drawGuiContainerForegroundLayer(int par1, int par2) {
  22. fontRenderer.drawString("RUMad", 8, 5 + 24, 4210752);
  23. fontRenderer.drawString(StatCollector.translateToLocal("container.inventory"), 8, 24 + 34, 4210752);
  24. }
  25.  
  26. @Override
  27. protected void drawGuiContainerBackgroundLayer(float f, int i, int j) {
  28. GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
  29. this.mc.renderEngine.bindTexture(texture);
  30. int x = (width - xSize) / 2;
  31. int y = (height - ySize) / 2 + 24;
  32. this.drawTexturedModalRect(x, y, 0, 0, xSize, ySize);
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment