OSDN Git Service

c1f6c4370183b0b49a635c2bc00e51c5c7189127
[chemicraft/chemicraft.git] / common / chemicraft / gui / GuiChemicalCraftingTable.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.ContainerChemicalCraftingTable;
8 import chemicraft.tileentity.TileEntityChemicalCraftingTable;
9 import cpw.mods.fml.common.Side;
10 import cpw.mods.fml.common.asm.SideOnly;
11
12 @SideOnly(Side.CLIENT)
13 public class GuiChemicalCraftingTable extends GuiContainer {
14
15         /**
16          * the TileEntity.
17          */
18         private TileEntityChemicalCraftingTable tileEntity;
19
20
21         /**
22          * the InventoryPlayer.
23          */
24         private InventoryPlayer inventoryPlayer;
25
26
27         /**
28          * the Container
29          */
30         private ContainerChemicalCraftingTable container;
31
32
33
34         public GuiChemicalCraftingTable(EntityPlayer par1EntityPlayer, TileEntityChemicalCraftingTable par2){
35                 super(new ContainerChemicalCraftingTable(par1EntityPlayer, par2));
36                 this.inventoryPlayer = par1EntityPlayer.inventory;
37                 this.tileEntity = par2;
38                 this.container = (ContainerChemicalCraftingTable) 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.guiChemicalCraftingTexture));
46                 this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.xSize, this.ySize);
47         }
48
49 }