3 import net.minecraft.src.Container;
4 import net.minecraft.src.EntityPlayer;
5 import net.minecraft.src.IInventory;
6 import net.minecraft.src.InventoryPlayer;
7 import net.minecraft.src.ItemStack;
8 import net.minecraft.src.Slot;
9 import net.minecraft.src.World;
11 public class ContainerScienceCraftingTable extends Container {
16 private World worldObj;
28 public ContainerScienceCraftingTable(InventoryPlayer par1InventoryPlayer, TileEntityScienceCraftingTable par2)
30 this.worldObj = par2.worldObj;
31 this.posX = par2.xCoord;
32 this.posY = par2.yCoord;
33 this.posZ = par2.zCoord;
39 public void onCraftMatrixChanged(IInventory par1IInventory){}
44 public void onCraftGuiClosed(EntityPlayer par1EntityPlayer){
45 super.onCraftGuiClosed(par1EntityPlayer);
51 public boolean canInteractWith(EntityPlayer par1EntityPlayer){
52 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;
58 public ItemStack transferStackInSlot(int par1){