OSDN Git Service

6a68008e32d97542b2711478d39134dbef9861cd
[chemicraft/chemicraft.git] / common / pcc / chemicraft / gui / GuiPyrolysisTable.java
1 package pcc.chemicraft.gui;
2
3 import net.minecraft.client.gui.inventory.GuiContainer;
4 import net.minecraft.entity.player.EntityPlayer;
5 import pcc.chemicraft.ChemiCraft;
6 import pcc.chemicraft.container.ContainerPyrolysisTable;
7 import pcc.chemicraft.tileentity.TileEntityPyrolysisTable;
8
9 public class GuiPyrolysisTable extends GuiContainer{
10
11         private TileEntityPyrolysisTable tileentity;
12
13         public GuiPyrolysisTable(EntityPlayer par1EntityPlayer, TileEntityPyrolysisTable par2) {
14                 super(new ContainerPyrolysisTable(par1EntityPlayer, par2));
15                 this.tileentity = par2;
16                 this.ySize = 204;
17         }
18
19         @Override
20         protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3) {
21                 this.mc.renderEngine.bindTexture(this.mc.renderEngine.getTexture(ChemiCraft.instance.GUI_PYROLYSIS_TEXTURE));
22                 this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.xSize, this.ySize);
23         }
24
25         @Override
26         protected void drawGuiContainerForegroundLayer(int par1, int par2) {
27                 this.fontRenderer.drawString(String.valueOf("Temp:" + (int)this.tileentity.getHeat()), 110, 100, 0x000000);
28         }
29
30 }