public UIFurnace(EntityPlayer p, TileEntityFurnace tileEntity, World world)
	{
		this.tile = tileEntity;
		this.theWorld = world;
		
		for(int i = 0 ; i < 10 ; i++)
	    {
	        this.slots[i] = new UIInventorySlot(BlockyMain.width / 2 - 16 - (32 * 4) - 12 + i * 32 + i + 3, BlockyMain.height / 2 - 32-50 - 3 - 32 - 20);
	    }
	        
		for(int i = 0 ; i < 10 ; i++)
	    {
	        this.slots[i + 10] = new UIInventorySlot(BlockyMain.width / 2 - 16 - (32 * 4) - 12 + i * 32 + i + 3, BlockyMain.height / 2-50 - 32 - 3);
	    }
	        
	    for(int i = 0 ; i < 10 ; i++)
	    {
	        this.slots[i + 20] = new UIInventorySlot(BlockyMain.width / 2 - 16 - (32 * 4) - 12 + i * 32 + i + 3, BlockyMain.height / 2-50);
	    }
	        
	    for(int i = 0 ; i < 10 ; i++)
	    {
	        this.slots[i + 30] = new UIInventorySlot(BlockyMain.width / 2 - 16 - (32 * 4) - 12 + i * 32 + i + 3, BlockyMain.height / 2-50 + 32 + 3);
	    }
	       
		
		for(int i = 0 ; i < p.inv.getInventorySize() ; i++)
		{
			this.slots[i].setStack(p.inv.getStackIn(i));
		}
		
		this.slots[40] = new UIInventorySlot(BlockyMain.width / 2 - 16 - (32 * 4) - 12 + 4 * 32 + 4 + 3, BlockyMain.height / 2 + 32 + 3);
		this.slots[41] = new UIInventorySlot(BlockyMain.width / 2 - 16 - (32 * 4) - 12 + 6 * 32 + 6 + 3, BlockyMain.height / 2 + 32 + 3);
		this.slots[42] = new UIInventorySlot(BlockyMain.width / 2 - 16 - (32 * 4) - 12 + 3 * 32 + 5 + 3, BlockyMain.height / 2 + 32 + 3);
		
		this.slots[40].setStack((ItemStack) tileEntity.in);
		this.slots[41].setStack((ItemStack) tileEntity.out);
		this.slots[42].setStack((ItemStack) tileEntity.fire);
		
		this.player = p;
	}