OSDN Git Service

eb885100f1b0b6fff738e261d3317b534021716d
[chemicraft/chemicraft.git] / common / chemicraft / GuiChemicalCombinationTable.java
1 package chemicraft;
2
3 import net.minecraft.src.Container;
4 import net.minecraft.src.EntityPlayer;
5 import net.minecraft.src.GuiContainer;
6 import net.minecraft.src.InventoryPlayer;
7
8 public class GuiChemicalCombinationTable extends GuiContainer {
9
10         /**
11          * the TileEntity.
12          */
13         private TileEntityChemicalCombinationTable tileEntity;
14
15
16         /**
17          * the InventoryPlayer.
18          */
19         private InventoryPlayer inventoryPlayer;
20
21
22         /**
23          * the Container
24          */
25         private ContainerChemicalCombinationTable container;
26
27
28
29         public GuiChemicalCombinationTable(EntityPlayer par1EntityPlayer, TileEntityChemicalCombinationTable par2){
30                 super(new ContainerChemicalCombinationTable(par1EntityPlayer, par2));
31                 this.inventoryPlayer = par1EntityPlayer.inventory;
32                 this.tileEntity = par2;
33                 this.container = (ContainerChemicalCombinationTable) this.inventorySlots;
34         }
35
36
37
38         @Override
39         protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3){
40                 this.mc.renderEngine.bindTexture(this.mc.renderEngine.getTexture(ChemiCraft.instance.guiChemicalCombinationTexture));
41                 this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.xSize, this.ySize);
42         }
43
44 }