OSDN Git Service

d3399474b5dfd9b53bf344322283c8b32c413ffb
[chemicraft/chemicraft.git] / common / chemicraft / GuiDecompositionTable.java
1 package chemicraft;
2
3 import java.util.ArrayList;
4 import java.util.HashMap;
5
6 import net.minecraft.src.Block;
7 import net.minecraft.src.EntityPlayer;
8 import net.minecraft.src.GuiContainer;
9 import net.minecraft.src.InventoryBasic;
10 import net.minecraft.src.InventoryPlayer;
11 import net.minecraft.src.Item;
12 import net.minecraft.src.ItemStack;
13 import cpw.mods.fml.common.Side;
14 import cpw.mods.fml.common.asm.SideOnly;
15 import cpw.mods.fml.common.network.PacketDispatcher;
16 import cpw.mods.fml.common.network.Player;
17
18 @SideOnly(Side.CLIENT)
19 public class GuiDecompositionTable extends GuiContainer {
20
21         /**
22          * the TileEntity.
23          */
24         private TileEntityDecompositionTable tileEntity;
25
26
27         /**
28          * the InventoryPlayer.
29          */
30         private InventoryPlayer inventoryPlayer;
31
32
33         /**
34          * the Container
35          */
36         private ContainerDecompositionTable container;
37
38
39
40         public GuiDecompositionTable(EntityPlayer par1EntityPlayer, TileEntityDecompositionTable par2){
41                 super(new ContainerDecompositionTable(par1EntityPlayer, par2));
42                 this.inventoryPlayer = par1EntityPlayer.inventory;
43                 this.tileEntity = par2;
44                 this.container = (ContainerDecompositionTable) this.inventorySlots;
45         }
46
47
48
49         @Override
50         protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3){
51                 this.mc.renderEngine.bindTexture(this.mc.renderEngine.getTexture(ChemiCraft.instance.guiDecompositionTexture));
52                 this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.xSize, this.ySize);
53         }
54
55 }