3 import java.util.ArrayList;
4 import java.util.HashMap;
6 import net.minecraft.src.Block;
7 import net.minecraft.src.EntityPlayer;
8 import net.minecraft.src.GuiButton;
9 import net.minecraft.src.GuiContainer;
10 import net.minecraft.src.InventoryBasic;
11 import net.minecraft.src.InventoryPlayer;
12 import net.minecraft.src.Item;
13 import net.minecraft.src.ItemStack;
14 import net.minecraft.src.StatCollector;
15 import cpw.mods.fml.common.Side;
16 import cpw.mods.fml.common.asm.SideOnly;
17 import cpw.mods.fml.common.network.PacketDispatcher;
18 import cpw.mods.fml.common.network.Player;
20 @SideOnly(Side.CLIENT)
21 public class GuiDecompositionTable extends GuiContainer {
26 private TileEntityDecompositionTable tileEntity;
30 * the InventoryPlayer.
32 private InventoryPlayer inventoryPlayer;
38 private ContainerDecompositionTable container;
42 public GuiDecompositionTable(EntityPlayer par1EntityPlayer, TileEntityDecompositionTable par2){
43 super(new ContainerDecompositionTable(par1EntityPlayer, par2));
44 this.inventoryPlayer = par1EntityPlayer.inventory;
45 this.tileEntity = par2;
46 this.container = (ContainerDecompositionTable) this.inventorySlots;
52 public void initGui(){
54 this.controlList.add(new GuiButton(0, this.guiLeft + 17, this.guiTop+4, 60, 16,"TakeOut"));
61 protected void drawGuiContainerForegroundLayer()
68 protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3){
69 this.mc.renderEngine.bindTexture(this.mc.renderEngine.getTexture(ChemiCraft.instance.guiDecompositionTexture));
70 this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.xSize, this.ySize);
76 protected void actionPerformed(GuiButton par1GuiButton){
77 this.container.onButtonClick(par1GuiButton.id);