OSDN Git Service

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