3 import net.minecraft.src.Block;
4 import net.minecraft.src.Container;
5 import net.minecraft.src.CraftingManager;
6 import net.minecraft.src.EntityPlayer;
7 import net.minecraft.src.IInventory;
8 import net.minecraft.src.InventoryCraftResult;
9 import net.minecraft.src.InventoryCrafting;
10 import net.minecraft.src.InventoryPlayer;
11 import net.minecraft.src.ItemStack;
12 import net.minecraft.src.Slot;
13 import net.minecraft.src.SlotCrafting;
14 import net.minecraft.src.World;
16 public class ContainerScienceCraftingTable extends Container
18 private World worldObj;
23 public ContainerScienceCraftingTable(InventoryPlayer par1InventoryPlayer, World par2World, int par3, int par4, int par5)
25 this.worldObj = par2World;
35 * Callback for when the crafting matrix is changed.
37 public void onCraftMatrixChanged(IInventory par1IInventory)
42 * Callback for when the crafting gui is closed.
44 public void onCraftGuiClosed(EntityPlayer par1EntityPlayer)
46 super.onCraftGuiClosed(par1EntityPlayer);
49 public boolean canInteractWith(EntityPlayer par1EntityPlayer)
51 return this.worldObj.getBlockId(this.posX, this.posY, this.posZ) != ChemiCraft.instance.scienceCraftingTableID ? false : par1EntityPlayer.getDistanceSq((double)this.posX + 0.5D, (double)this.posY + 0.5D, (double)this.posZ + 0.5D) <= 64.0D;
55 * Called to transfer a stack from one inventory to the other eg. when shift clicking.
57 public ItemStack transferStackInSlot(int par1)